快速接入币安的开源sdk。目前实现了最实用的部分接口。
- 1.0.5支持多实例可以传入参数进行实例化
- 1.0.4增加部分币安接口
建立放config.txt中的url与api信息。config.txt示例
BIANCE_URL=https://api.binance.com
BIANCE_KEY=my key
BIANCE_SECRET=my secret
<!-- https://mvnrepository.com/artifact/com.github.darkice1/easy-biance -->
<dependency>
<groupId>com.github.darkice1</groupId>
<artifactId>easy-biance</artifactId>
<version>1.0.5</version>
</dependency>
- 英文 https://github.com/binance/binance-spot-api-docs/blob/master/rest-api.md
- 中文比较老需要以英文为准 https://github.com/binance/binance-spot-api-docs/blob/master/rest-api_CN.md
BianceClient.time()
BianceClient.exchangeInfo()
BianceClient.depth()
BianceClient.trades()
BianceClient.historicalTrades()
BianceClient.aggTrades()
BianceClient.klines()
BianceClient.hr24()
BianceClient.findorder()
BianceClient.bookTicker()
BianceClient.avgPrice()
BianceClient.tickerPrice()
BianceClient.bookPrice()
https://binance-docs.github.io/apidocs/spot/cn/#trade-3 BianceClient.order()
https://binance-docs.github.io/apidocs/spot/cn/#trade-2 BianceClient.orderTest()
https://binance-docs.github.io/apidocs/spot/cn/#user_data-35 BianceClient.openOrders()
https://binance-docs.github.io/apidocs/spot/cn/#user_data-36 BianceClient.allOrders()
BianceClient.account()
BianceClient.myTrades()
BianceClient.subAccountList()
BianceClient.dailyProductList()
BianceClient.dailyUserLeftQuota()
BianceClient.dailyPosition()
BianceClient.dailyUserRedemptionQuota()
https://binance-docs.github.io/apidocs/spot/cn/#user_data-65 BianceClient.simpleEarnFlexibleList()
https://binance-docs.github.io/apidocs/spot/cn/#user_data-67 BianceClient.simpleEarnFlexiblePosition()
https://binance-docs.github.io/apidocs/spot/cn/#user_data-69 BianceClient.simpleEarnAccount()
https://binance-docs.github.io/apidocs/spot/cn/#trade-15 BianceClient.simpleEarnFlexibleSubscribe()
https://binance-docs.github.io/apidocs/spot/cn/#trade-16 BianceClient.simpleEarnFlexibleRedeem()