Coder Social home page Coder Social logo

binance-crawler's People

Contributors

chengyen-tang avatar

Watchers

 avatar

binance-crawler's Issues

Binance API [Requirement]

Requirement

API

  1. Spot kline (Interval: 1m):
    https://github.com/adshao/go-binance/blob/52be7e1eecfe83bb32af00c3e8fd3e31b13be8c6/v2/kline_service.go
    https://binance-docs.github.io/apidocs/spot/en/#kline-candlestick-data
  2. Futures kline (Interval: 1m):
    https://github.com/adshao/go-binance/blob/52be7e1eecfe83bb32af00c3e8fd3e31b13be8c6/v2/futures/kline_service.go
    https://binance-docs.github.io/apidocs/futures/en/#kline-candlestick-data
  3. Premium index kline (Interval: 1m):
    https://github.com/adshao/go-binance/blob/52be7e1eecfe83bb32af00c3e8fd3e31b13be8c6/v2/futures/premium_index_kline_service.go
    https://binance-docs.github.io/apidocs/futures/en/#premium-index-kline-data
  4. Funding rate
    https://github.com/adshao/go-binance/blob/52be7e1eecfe83bb32af00c3e8fd3e31b13be8c6/v2/futures/mark_price.go#L55-L123
    https://binance-docs.github.io/apidocs/futures/en/#get-funding-rate-history

API Rate Limit

Binance API has two types of rate limits.

  1. Weight:
    You can send up to 6,000 requests per minute with a weight limit.
    image
  2. Rate Limit:
    image

Development notes

  1. File folder: https://github.com/ChengYen-Tang/binance-crawler/tree/master/v1/modules/crawler/go-binance
  2. Implement the functions of the IGet interface
    1. Remember to implement new instance function: New(client *IClient, symbol *[]string, channel *chan models.IWorkItem) IGet
    2. Need import 'github.com/ChengYen-Tang/binance-crawler/models'
  3. Downloaded data need converted into WorkItem objects, which are then inserted into the channel.
    1. https://github.com/ChengYen-Tang/binance-crawler/blob/master/v1/models/kline.go#L23-L33
    2. https://github.com/ChengYen-Tang/binance-crawler/blob/master/v1/models/funding_rate.go#L16-L18

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.