Supports extensions to call all digital currency exchanges (unwrapped)
Supported by Trusteesexchange.IO("api", httpMethod, resource, params)
Calls, returns the corresponding Object structure, can print out its own analysis calls
How to call
For example, call OKCoin's cancellation of loan application interface
Referenceshttps://www.okcoin.cn/about/rest_api.do
exchange.IO("api", "POST", "/api/v1/cancel_borrow.do", "symbol=cny&borrow_id=123");
api_key and sign do not need to be passed, the administrator will calculate it themselves.
How to get loans
exchange.IO("api", "POST", "/api/v1/borrows_info.do", "symbol=cny");
Poloniex:
Because the submission paths are the same.https://poloniex.com/tradingApi, so resource only passes method names:
// 提现
exchange.IO("api", "POST", "withdraw", "amount=0.1¤cy=BTC&address=xxx");
其它支持的交易所可参考相应的API文档.
The short-line king won selling the high-price strategyI can't get backwards compatible, so I have to change the previous code!!! Admired
Inventors quantify - small dreamsIt's great. It's fun.
The grass sofa
The short-line king won selling the high-price strategyYou can only use the boss first.
ZeroIf the workload is large, it can be judged by continuing with the old host or using Version (((), mainly to be more unified later, easy to write, inconvenient for a while, convenient forever haha