Versions in this module Expand all Collapse all v1 v1.3.2 May 29, 2022 Changes in this version + type BitgetSwap struct + func NewSwap(config *APIConfig) *BitgetSwap + func (bs *BitgetSwap) FutureCancelOrder(currencyPair CurrencyPair, contractType, orderId string) (bool, error) + func (bs *BitgetSwap) GetContractInfo(pair CurrencyPair) (*Instrument, error) + func (bs *BitgetSwap) GetContractValue(currencyPair CurrencyPair) (float64, error) + func (bs *BitgetSwap) GetDeliveryTime() (int, int, int, int) + func (bs *BitgetSwap) GetExchangeName() string + func (bs *BitgetSwap) GetFee() (float64, error) + func (bs *BitgetSwap) GetFutureDepth(currency CurrencyPair, contractType string, size int) (*Depth, error) + func (bs *BitgetSwap) GetFutureEstimatedPrice(currencyPair CurrencyPair) (float64, error) + func (bs *BitgetSwap) GetFutureIndex(currencyPair CurrencyPair) (float64, error) + func (bs *BitgetSwap) GetFutureOrder(orderId string, currencyPair CurrencyPair, contractType string) (*FutureOrder, error) + func (bs *BitgetSwap) GetFutureOrders(orderIds []string, currencyPair CurrencyPair, contractType string) ([]FutureOrder, error) + func (bs *BitgetSwap) GetFuturePosition(currencyPair CurrencyPair, contractType string) ([]FuturePosition, error) + func (bs *BitgetSwap) GetFutureTicker(currency CurrencyPair, contractType string) (*Ticker, error) + func (bs *BitgetSwap) GetFutureUserinfo(currencyPair ...CurrencyPair) (*FutureAccount, error) + func (bs *BitgetSwap) GetInstruments() ([]Instrument, error) + func (bs *BitgetSwap) GetKlineRecords(contractType string, currency CurrencyPair, period, size, since int) ([]FutureKline, error) + func (bs *BitgetSwap) GetMarginLevel(currencyPair CurrencyPair) (*MarginLeverage, error) + func (bs *BitgetSwap) GetServerTime() (int64, error) + func (bs *BitgetSwap) GetTrades(contractType string, currencyPair CurrencyPair, since int64) ([]Trade, error) + func (bs *BitgetSwap) GetUnfinishFutureOrders(currencyPair CurrencyPair, contractType string) ([]FutureOrder, error) + func (bs *BitgetSwap) LimitFuturesOrder(currencyPair CurrencyPair, contractType, price, amount string, openType int, ...) (*FutureOrder, error) + func (bs *BitgetSwap) MarketFuturesOrder(currencyPair CurrencyPair, contractType, amount string, openType int) (*FutureOrder, error) + func (bs *BitgetSwap) ModifyAutoAppendMargin(currencyPair CurrencyPair, side int, autoAppend int) (bool, error) + func (bs *BitgetSwap) PlaceFutureOrder(currencyPair CurrencyPair, contractType, price, amount string, ...) (string, error) + func (bs *BitgetSwap) PlaceFutureOrder2(currencyPair CurrencyPair, contractType, price, amount string, ...) (*FutureOrder, error) + func (bs *BitgetSwap) SetBaseUri(uri string) + func (bs *BitgetSwap) SetMarginLevel(currencyPair CurrencyPair, level, side int) (*MarginLeverage, error) + type Instrument struct + Coin string + ContractVal string + Delivery []interface{} + ForwardContractFlag bool + Listing interface{} + PriceEndStep int + QuoteCurrency string + SizeIncrement int + Symbol string + TickSize int + UnderlyingIndex string + type MarginLeverage struct + ForwardContractFlag bool + LongLeverage float64 + MarginMode string + ShortLeverage float64 + Symbol string