GithubHelp home page GithubHelp logo

crawler's Introduction

ReadMe Of Crawler

Design of table

  • table name : trade_BTCUSDT_table

    exch_name Id price qty quoteQty time isBuyerMaker
    • exch_name: name of exchange VARCHAR(255)
    • Id: transaction id VARCHAR(255)
    • price: the price in the transaction DOUBLE
    • qty: the amount of coins traded in the record DOUBLE
    • quoteQty: the amount of money in the record DOUBLE
    • time: the tick from 1970. BITINT(8)
    • isBuyMaker:
      • If the transaction order is provided by buyer : True
      • If the transaction order is provided by seller: False

    PRIMARY KEY(exch_name, ID)

  • Notes:

    • Mysql Shell:

      mysql -u root -p

      passwd:123456

    • Pay attention to the timestamp

      • 1625465785723 in ms (not preferred)
      • 1625465785 in s
    • If None: continue

Currently Parsed Exchanges

Exchange API Request Limit Running Interval Remarks
Huobi Global https://api.hbdm.com/linear-swap-ex/market/history/trade?contract_code=BTC-USDT&size=100 General 120 times request / 3 seconds for each IP 60s -
Binance https://api1.binance.com/api/v3/trades?symbol=BTCUSDT (1 weight for 1 coin) 1200 weights / min for each IP 60s -
Coinbase https://api.pro.coinbase.com/products/BTC-USDT/trades 10 requests / second for each IP 60s -
Kraken https://api.kraken.com/0/public/Trades?pair=BTCUSDT&since=1625531618 Every REST API user has a "call counter" which starts at 0, trade history calls increase the counter by 2. The maximum is 15, and the reduce rate is -0.33/second. 60s The limit is a problem. To solve it, one solutions is to crawl the transaction of different coins at cost of some some seconds delay
FTX https://ftx.com/api/markets/BTC/USDT/trades?start_time=1625531563&end_time=1625531657 30 requests / second 60s -
Kucoin https://api.kucoin.com/api/v1/market/histories?symbol=BTC-USDT 1800 requests / minute 30s There seems no control of how many records or what time period of records returned by the endpoint.
Bithumb https://api.bithumb.com/public/transaction_history/BTC_KRW 135 requests / second - As this exchanges only support transaction in Korean Won, not USD, so I ignoreed
Bitfinex https://api-pub.bitfinex.com/v2/trades/tBTCUSD/hist (90 req/min) rate limit is between 10 and 90 requests per minute, depending on the specific REST API endpoint 60s
Gate.io https://api.gateio.ws/api/v4/spot/trades?currency_pair=BTC_USDT&limit=1000 300 read operations per IP per second
biance.us https://api.binance.us/api/v3/trades?symbol=BTCUSDT (1 weight/request) 1200 weight / minute
Bitstamp https://www.bitstamp.net/api/v2/transactions/btcusdt/?time=hour 8000 requests / 10 mins
Bitflyer https://api.bitflyer.com/v1/getexecutions?product_code=BTC_USD&count=100 500 queries per 5 minutes - The api seems not accessible.
Gemini https://api.gemini.com/v1/trades/btcusd 120 requests per minute
coinone - - - It only contains KRW not USD, ignore
Poloniex https://poloniex.com/public?command=returnTradeHistory&currencyPair=USDT_BTC&start=1610158341&end=1610499372 6 calls per second
Bitexen https://www.bitexen.com/api/v1/order_book/BTCUSDT/ 60 requests/min
LBank https://api.lbkex.com/v2/trades.do?symbol=btc_usdt&size=600 200 requests/10s
ItBit https://api.paxos.com/v2/markets/BTCUSD/recent-executions
CoinEX https://api.coinex.com/v1/market/deals?market=BCHBTC NA
bitkub - - - It is a exchange for Thailand. Only sport THB, not USD or USDT
bitbank - - - Only suppeort JPY
CoinBit - - - Only KRW
BitWell https://openapi.bitwellex.com/pub/openapi/v1/hq/transaction?symbol=ETH_USDT - - It only provised the latest transaction. We cannot have the recent transaction record.
CEX.io https://cex.io/api/trade_history/BTC/USDT/
Dex-Trade https://api.dex-trade.com/v1/public/trades?pair=ETHUSDT NA
gokumarket https://publicapi.gokumarket.com/trades?currency_pair=btc_usdt
EQONEX https://eqonex.com/api/getTradeHistory?pairId={} NA
AAX https://api.aax.com/v2/market/trades?symbol=BTCUSDT&limit=10 10 / s, 150/min, 5000/h
HitBTC https://api.hitbtc.com/api/2/public/trades/ETHBTC?sort=DESC 10 request / s

crawler's People

Contributors

xiehou3131 avatar

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.