-
Notifications
You must be signed in to change notification settings - Fork 632
现货支持API接口
bit_he edited this page Jul 14, 2020
·
3 revisions
- GetExchangeName() 获取交易所名字,一般是个主域名
- GetTicker(currency CurrencyPair) (*Ticker, error) 获取Ticker信息
- GetDepth(size int, currency CurrencyPair) (*Depth, error) 获取深度信息
- GetKlineRecords(currency CurrencyPair, period , size, since int) ([]Kline, error) 获取K线数据
- GetTrades(currencyPair CurrencyPair, since int64) ([]Trade, error) 获取交易所交易记录
- GetAccount() (*Account, error) 获取账号资产信息
- LimitBuy(amount, price string, currency CurrencyPair) (*Order, error) 下限价买单
- LimitSell(amount, price string, currency CurrencyPair) (*Order, error) 下限价卖单
- MarketBuy(amount, price string, currency CurrencyPair) (*Order, error) 下市价买单
- MarketSell(amount, price string, currency CurrencyPair) (*Order, error) 下市价卖单
- CancelOrder(orderId string, currency CurrencyPair) (bool, error) 取消订单
- GetOneOrder(orderId string, currency CurrencyPair) (*Order, error) 获取一个订单信息
- GetUnfinishOrders(currency CurrencyPair) ([]Order, error) 获取未成交订单列表
- GetOrderHistorys(currency CurrencyPair, currentPage, pageSize int) ([]Order, error) 获取历史订单信息