Versions in this module Expand all Collapse all v1 v1.1.3 Jan 15, 2020 v1.0.4 Aug 27, 2019 Changes in this version + const FCoinWSKLines + const FCoinWSOrderBook + const FCoinWSOrderBookFull + const FCoinWSOrderBookL150 + const FCoinWSOrderBookL20 + const FCoinWSTicker + const FCoinWSTrades + type Asset struct + Avaliable float64 + Currency Currency + Finances float64 + Frozen float64 + Lock float64 + Total float64 + type FCoin struct + func NewFCoin(client *http.Client, apikey, secretkey string) *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 struct + BuyAmount float64 + SellAmount float64 + type FCoinWs struct + func NewFCoinWs(client *http.Client) *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 struct + AmountDecimal int + BaseCurrency string + Name string + PriceDecimal int + QuoteCurrency string + Tradeable bool + type TradeSymbol2 struct + Category string + DailyCloseAt string + DailyOpenAt string + LeveragedMultiple int + LimitAmountMax float64 + LimitAmountMin float64 + MainTag string + MarketOrderEnabled bool