Documentation ¶
Index ¶
- Constants
- type Asset
- type FCoin
- func (fc *FCoin) AssetTransfer(currency Currency, amount, from, to string) (bool, error)
- func (fc *FCoin) CancelOrder(orderId string, currency CurrencyPair) (bool, error)
- func (fc *FCoin) GetAccount() (*Account, error)
- func (fc *FCoin) GetAssets() ([]Asset, error)
- func (fc *FCoin) GetDaysOrderHistorys(currency CurrencyPair, start time.Time, days int64) ([]Order, error)
- func (fc *FCoin) GetDepth(size int, currency CurrencyPair) (*Depth, error)
- func (fc *FCoin) GetExchangeName() string
- func (fc *FCoin) GetHoursOrderHistorys(currency CurrencyPair, start time.Time, hours int64) ([]Order, error)
- func (fc *FCoin) GetKlineRecords(currency CurrencyPair, period, size, since int) ([]Kline, error)
- func (fc *FCoin) GetOneOrder(orderId string, currency CurrencyPair) (*Order, error)
- func (fc *FCoin) GetOrderHistorys(currency CurrencyPair, currentPage, pageSize int) ([]Order, error)
- func (fc *FCoin) GetServerTime() (int64, error)
- func (fc *FCoin) GetTicker(currencyPair CurrencyPair) (*Ticker, error)
- func (fc *FCoin) GetTradeSymbols(currencyPair CurrencyPair) (*TradeSymbol, error)
- func (fc *FCoin) GetTradeSymbols2(currencyPair CurrencyPair) (*TradeSymbol2, error)
- func (fc *FCoin) GetTrades(currencyPair CurrencyPair, since int64) ([]Trade, error)
- func (fc *FCoin) GetUnfinishOrders(currency CurrencyPair) ([]Order, error)
- func (fc *FCoin) LimitBuy(amount, price string, currency CurrencyPair) (*Order, error)
- func (fc *FCoin) LimitSell(amount, price string, currency CurrencyPair) (*Order, error)
- func (fc *FCoin) MarketBuy(amount, price string, currency CurrencyPair) (*Order, error)
- func (fc *FCoin) MarketSell(amount, price string, currency CurrencyPair) (*Order, error)
- type FCoinTicker
- type FCoinWs
- func (fcWs *FCoinWs) SetCallbacks(tickerCallback func(*Ticker), depthCallback func(*Depth), ...)
- func (fcWs *FCoinWs) SubscribeDepth(pair CurrencyPair, size int) error
- func (fcWs *FCoinWs) SubscribeKline(pair CurrencyPair, period int) error
- func (fcWs *FCoinWs) SubscribeTicker(pair CurrencyPair) error
- func (fcWs *FCoinWs) SubscribeTrade(pair CurrencyPair) error
- type TradeSymbol
- type TradeSymbol2
Constants ¶
View Source
const ( FCoinWSTicker = "ticker.%s" FCoinWSOrderBook = "depth.L%d.%s" FCoinWSOrderBookL20 = "depth.L20.%s" FCoinWSOrderBookL150 = "depth.L150.%s" FCoinWSOrderBookFull = "depth.full.%s" FCoinWSTrades = "trade.%s" FCoinWSKLines = "candle.%s.%s" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Asset ¶
type FCoin ¶
type FCoin struct {
// contains filtered or unexported fields
}
func (*FCoin) AssetTransfer ¶
from, to: assets, spot
func (*FCoin) CancelOrder ¶
func (*FCoin) GetDaysOrderHistorys ¶
func (*FCoin) GetHoursOrderHistorys ¶
func (*FCoin) GetKlineRecords ¶
func (*FCoin) GetOneOrder ¶
func (*FCoin) GetOrderHistorys ¶
func (*FCoin) GetTradeSymbols ¶
func (fc *FCoin) GetTradeSymbols(currencyPair CurrencyPair) (*TradeSymbol, error)
func (*FCoin) GetTradeSymbols2 ¶ added in v1.0.3
func (fc *FCoin) GetTradeSymbols2(currencyPair CurrencyPair) (*TradeSymbol2, error)
func (*FCoin) GetTrades ¶
非个人,整个交易所的交易记录
func (*FCoin) GetUnfinishOrders ¶
func (*FCoin) LimitBuy ¶
func (*FCoin) LimitSell ¶
func (*FCoin) MarketBuy ¶
type FCoinWs ¶
func (*FCoinWs) SetCallbacks ¶
func (*FCoinWs) SubscribeDepth ¶
func (*FCoinWs) SubscribeKline ¶
type TradeSymbol ¶
type TradeSymbol2 ¶ added in v1.0.3
type TradeSymbol2 struct { TradeSymbol Category string `json:"category"` LeveragedMultiple int `json:"leveraged_multiple"` MarketOrderEnabled bool `json:"market_order_enabled"` LimitAmountMin float64 `json:"limit_amount_min"` LimitAmountMax float64 `json:"limit_amount_max"` MainTag string `json:"main_tag"` DailyOpenAt string `json:"daily_open_at"` DailyCloseAt string `json:"daily_close_at"` }
Click to show internal directories.
Click to hide internal directories.