ccxt / ccxt

A JavaScript / TypeScript / Python / C# / PHP cryptocurrency trading API with support for more than 100 bitcoin/altcoin exchanges
https://docs.ccxt.com
MIT License
33.05k stars 7.54k forks source link

Add support for Binance distribution history (Airdrops, Distributions, Rewards, etc...) #5693

Closed rlkc112358 closed 5 years ago

rlkc112358 commented 5 years ago

Binance has recently upgraded its API, which now supports Distribution History

The endpoint is GET /sapi/v1/asset/assetDividend

It'd be great to be able to fetch distribution history through API as compared to the alternative:

  1. Notice an unexplained position break
  2. Log into Binance
  3. Check the distribution history for airdrops
  4. Manually book the airdrop into the Position Management System I am using
kroitor commented 5 years ago

Related: https://github.com/ccxt/ccxt/pull/5725