Skip to content

Latest commit

 

History

History
19 lines (17 loc) · 983 Bytes

api.md

File metadata and controls

19 lines (17 loc) · 983 Bytes

API

XCoin provides a unified API for client programs, and provides the following information through the API

  • status:provides the running status of the current trading bot
    • getInitData:Get bot initialization data
    • refreshData:to obtain real-time trading data of bots
  • operation:Provides interactive operations with the current trading bot
    • bug:buy long or short
    • sell:sell long or short
    • sellAll:clearance
    • addSymbol:adds the trading pair to the monitoring pool
    • removeAllSymbol:Empty monitor pool
    • removeSymbol:removes the trading pair from the monitoring pool
    • updateConfig:Update bot settings
    • updateSymbolFuture:Update futures related settings, such as leverage
  • market:provides relevant operations of the exchange corresponding to the current trading bot, such as obtaining products, quotations, etc.
  • backtest:provides backtest related data
  • panacea:provides Panacea client-side related content