Giter VIP home page Giter VIP logo

backend's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

backend's Issues

request&response

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.

Break down data to simpler form

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|

Coin Listing

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

Admin endpoint

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.

make cron job ids dynamic for each cron job that is run

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)

List the data that needs to be analyzed

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|

Merge dev to main

@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.

Coin Listing GUI

need to create GUI for showing btc and eth coins details.
This is to be completed by 16th March.

Create Endpoint for User

Using passport strategies, create endpoints for user login using local strategy, facebook strategy and google strategy

Setup linting on the project.

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.