service

package
v0.0.0-...-a659e06 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 25, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAccountBalance

func GetAccountBalance(strAccountID string) huobi.BalanceReturn

根据账户ID查询账户余额 nAccountID: 账户ID, 不知道的话可以通过GetAccounts()获取, 可以只现货账户, C2C账户, 期货账户 return: BalanceReturn对象

func GetAccounts

func GetAccounts() huobi.AccountsReturn

查询当前用户的所有账户, 根据包含的私钥查询 return: AccountsReturn对象

func GetCurrencys

func GetCurrencys() huobi.CurrencysReturn

查询系统支持的所有币种 return: CurrencysReturn对象

func GetKLine

func GetKLine(strSymbol, strPeriod string, nSize int) huobi.KLineReturn

获取K线数据 strSymbol: 交易对, btcusdt, bccbtc...... strPeriod: K线类型, 1min, 5min, 15min...... nSize: 获取数量, [1-2000] return: KLineReturn 对象

func GetMarketDepth

func GetMarketDepth(strSymbol, strType string) huobi.MarketDepthReturn

获取交易深度信息 strSymbol: 交易对, btcusdt, bccbtc...... strType: Depth类型, step0、step1......stpe5 (合并深度0-5, 0时不合并) return: MarketDepthReturn对象

func GetMarketDetail

func GetMarketDetail(strSymbol string) huobi.MarketDetailReturn

获取Market Detail 24小时成交量数据 strSymbol: 交易对, btcusdt, bccbtc...... return: MarketDetailReturn对象

func GetSymbols

func GetSymbols() huobi.SymbolsReturn

查询系统支持的所有交易及精度 return: SymbolsReturn对象

func GetTicker

func GetTicker(strSymbol string) huobi.TickerReturn

获取聚合行情 strSymbol: 交易对, btcusdt, bccbtc...... return: TickReturn对象

func GetTimestamp

func GetTimestamp() huobi.TimestampReturn

查询系统当前时间戳 return: TimestampReturn对象

func GetTrade

func GetTrade(strSymbol string, nSize int) huobi.TradeReturn

批量获取最近的交易记录 strSymbol: 交易对, btcusdt, bccbtc...... nSize: 获取交易记录的数量, 范围1-2000 return: TradeReturn对象

func GetTradeDetail

func GetTradeDetail(strSymbol string) huobi.TradeDetailReturn

获取交易细节信息 strSymbol: 交易对, btcusdt, bccbtc...... return: TradeDetailReturn对象

func Place

func Place(placeRequestParams huobi.PlaceRequestParams) huobi.PlaceReturn

下单 placeRequestParams: 下单信息 return: PlaceReturn对象

func QueryOrder

func QueryOrder(strOrderID string) huobi.OrderDetailReturn

func SubmitCancel

func SubmitCancel(strOrderID string) huobi.PlaceReturn

申请撤销一个订单请求 strOrderID: 订单ID return: PlaceReturn对象

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL