Versions in this module Expand all Collapse all v1 v1.0.6 Sep 27, 2019 v1.0.5 Sep 7, 2019 Changes in this version + type Coinbene struct + Swap *CoinbeneSwap + type CoinbeneOrder struct + AveragePrice float64 + Direction string + Fee float64 + FilledQuantity float64 + Leverage int + OrderId string + OrderPrice float64 + OrderTime time.Time + OrderType string + OrderValue float64 + Quantity float64 + Status string + Symbol string + type CoinbeneSwap struct + func NewCoinbeneSwap(config APIConfig) *CoinbeneSwap + func (swap *CoinbeneSwap) FutureCancelOrder(currencyPair CurrencyPair, contractType, orderId string) (bool, error) + func (swap *CoinbeneSwap) GetContractValue(currencyPair CurrencyPair) (float64, error) + func (swap *CoinbeneSwap) GetDeliveryTime() (int, int, int, int) + func (swap *CoinbeneSwap) GetExchangeName() string + func (swap *CoinbeneSwap) GetFee() (float64, error) + func (swap *CoinbeneSwap) GetFutureDepth(currencyPair CurrencyPair, contractType string, size int) (*Depth, error) + func (swap *CoinbeneSwap) GetFutureEstimatedPrice(currencyPair CurrencyPair) (float64, error) + func (swap *CoinbeneSwap) GetFutureIndex(currencyPair CurrencyPair) (float64, error) + func (swap *CoinbeneSwap) GetFutureOrder(orderId string, currencyPair CurrencyPair, contractType string) (*FutureOrder, error) + func (swap *CoinbeneSwap) GetFutureOrders(orderIds []string, currencyPair CurrencyPair, contractType string) ([]FutureOrder, error) + func (swap *CoinbeneSwap) GetFuturePosition(currencyPair CurrencyPair, contractType string) ([]FuturePosition, error) + func (swap *CoinbeneSwap) GetFutureTicker(currencyPair CurrencyPair, contractType string) (*Ticker, error) + func (swap *CoinbeneSwap) GetFutureUserinfo() (*FutureAccount, error) + func (swap *CoinbeneSwap) GetKlineRecords(contract_type string, currency CurrencyPair, period, size, since int) ([]FutureKline, error) + func (swap *CoinbeneSwap) GetTrades(contract_type string, currencyPair CurrencyPair, since int64) ([]Trade, error) + func (swap *CoinbeneSwap) GetUnfinishFutureOrders(currencyPair CurrencyPair, contractType string) ([]FutureOrder, error) + func (swap *CoinbeneSwap) PlaceFutureOrder(currencyPair CurrencyPair, contractType, price, amount string, ...) (string, error)