coinratecap / backend Goto Github PK
View Code? Open in Web Editor NEWThis is the backend of coinratecap
License: MIT License
This is the backend of coinratecap
License: MIT License
Hello all, after our group meeting yesterday and as per @francisca - SM Manager request I am going to discuss a little about how we are going to request from URL and how to provide response.
exports.getCoinPrice = async () => {
const url = 'https://api.gemini.com/v1/pubticker/btcusd'
try {
const response = await got(url, { responseType: 'json' })
return response.body
} catch (error) {
throw new Error(error)
}
}
and then use it as:
router.get("/price", async (req, res, next) => {
try {
const price = await getCoinPrice()
res.status(200).json({price: price.last, volume: price.volume})
} catch (error) {
next(error)
}
})
I have used got npm package for requesting from URL's and probably will use cron package for cron jobs.
Our response type will be the same for all URL's as {price: last price, volume: volume of exchange}
and request might be different(sometimes) depending on the resources provided data.
We have a list of URL's provided by @dhakal0kushal and I will go over them to one by one and update you in comments below.
Emeka you are to handle this and deliver by 12.00pm on the 13th of January 2021
Noor you are to work on this and deliver by 12.00pm on the 13th of January 2021
Following coingecko methodology write a break down of these data in simpler and understandable manner. Come up with our own methodology for getting and calculating these data’s from exchanges API’s.
Show working using text for calculations and Nodejs or js for practical purpose.
Here’s coingecko methodology https://www.coingecko.com/en/methodology
here are the data’s needed to complete our coin listing features:
For instance, we have the LAST PRICE in this exchange api https://api.binance.us/api/v3/ticker/24hr?symbol=BTCUSD
as the price of Bitcoin, same as volume etc.
In the information provided below for each coin, show practical work and methodology
P1h | 24h | 7d | 24h Volume| Mkt Cap | Last 7 Days | Market Cap | 24h Low / 24h High |Circulating Supply | Fully Diluted Valuation | Max Supply|
Please everyone assigned to this issue is to list at least one coin daily.
Once done listing, create a push request and notify wisdom on the channel so he can review before merging.
Kindly do not merge a PR yourself.
Thank you
create doc for end points to make it easier for frontend people.
Our next target is to create endpoint to enable admin carry put the following functionalities.
1 Add, Edit, Delete of coin form the database
2 Add, Edit, Delete of exchanges from the database
3 Assign coin to exchanges
4 Add, Edit, Delete of blog post
@Wisdom132 will handle -- 1
@NoorAhmd will handle -- 2
@melodyogonna will handle --- 3
@Emibrown will handle -- 4
We have to complete all the above task within 24hours from now.
Trying to update a blog post returns TypeError: Blog.save is not a function
Research and edit readme.md file with the coin listing methodology.
is everyone okay with the fields in the coin scheme or do you think we need more fields for the data storing?
schemaLink: https://github.com/coinratecap/Backend/blob/main/src/modules/models/Coin.js
CoinGeko coin detail endpoint: https://api.coingecko.com/api/v3/coins/bitcoin
Currently all cron jobs and the database entries that is created for the cron job are assigned a static id. I need to change it to make it dynamic id so that each database entry will be having a proper cron id for later use and proper segregation.
This is to be completed by march 19th (end of this week)
Hello seeker, you are to work on this and deliver in the next two days that's by 3rd of February 2021
Going through the exchange api, mention the following that's not provided by the exchange Api but rather requires data analysis to come up with the information.
For instance, we have the LAST PRICE in this exchange api https://api.binance.us/api/v3/ticker/24hr?symbol=BTCUSD
as the price of Bitcoin, same as volume etc.
In the information provided below for each coin, which of them are not literally stated in the api?
Price | 1h | 24h | 7d | 24h Volume | Mkt Cap | Last 7 Days | Market Cap | 24h Low / 24h High |Circulating Supply | Fully Diluted Valuation | Max Supply|
The blog section needs to be completed by March 19th (by end of this week)
@Emibrown since you have performed code review and no errors so far, pls merge dev to main. once merged, communicate with @Wisdom132 to deploy Admin GUI from the main branch.
Do this before Friday 12:00 noon.
@Aiijay keep track and update me.
need to create GUI for showing btc and eth coins details.
This is to be completed by 16th March.
Using passport strategies, create endpoints for user login using local strategy, facebook strategy and google strategy
Melody you are to work on this and delivery by 12.00pm on the 13th of January 2021
create a cron job which auto fetches the prices of coins from exchange at regular intervals so that manually triggering the price fetching by the trigger
route is not required.
For effective collaboration, some style-rules need to be set. Think we should set up linting - Eslint with AirBnB style guide, I could set it up if given the go-ahead.
@Emibrown
Wisdom you are to work on this and deliver by 12.00pm on 13th of January 2021
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.