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) GetTicker(currencyPair CurrencyPair) (*Ticker, error)
- func (fc *FCoin) GetTradeSymbols(currencyPair CurrencyPair) (*TradeSymbol, 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
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 FCoin ¶
type FCoin struct {
// contains filtered or unexported fields
}
func (*FCoin) AssetTransfer ¶
from, to: assets, spot
func (*FCoin) CancelOrder ¶
func (*FCoin) GetAccount ¶
func (*FCoin) GetDaysOrderHistorys ¶
func (*FCoin) GetExchangeName ¶
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) GetUnfinishOrders ¶
func (*FCoin) MarketSell ¶
type FCoinTicker ¶
type FCoinTicker struct { Ticker SellAmount, BuyAmount float64 }
type FCoinWs ¶
func NewFCoinWs ¶
func (*FCoinWs) SetCallbacks ¶
func (*FCoinWs) SubscribeDepth ¶
func (*FCoinWs) SubscribeKline ¶
func (*FCoinWs) SubscribeTicker ¶
func (*FCoinWs) SubscribeTrade ¶
Click to show internal directories.
Click to hide internal directories.