Versions in this module Expand all Collapse all v2 v2.0.13 Feb 11, 2025 v2.0.12 Feb 11, 2025 Changes in this version + const OKX_REAL_ENDPOINT + const OKX_SIMULATED_ENDPOINT v2.0.9 Feb 11, 2025 Changes in this version + const Buy + const OrderType_FOK + const OrderType_IOC + const OrderType_PostOnly + const Sell type Order + ClientId string + Timestamp int64 type OrderStatus + const OrderStatus_Filled + const OrderStatus_New + const OrderStatus_PartialFilled + const OrderStatus_Rejected + const OrderStatus_Unknown v2.0.8 Feb 11, 2025 v2.0.7 Feb 11, 2025 v2.0.6 Feb 11, 2025 v2.0.5 Feb 11, 2025 v2.0.4 Feb 11, 2025 v2.0.3 Feb 11, 2025 v2.0.2 Feb 11, 2025 v2.0.1 Feb 11, 2025 Changes in this version + const AAVE + const ADA + const ALGO + const AR + const ATOM + const BCH + const BINANCE + const BNB + const BSV + const BTC + const BUSD + const CEL + const CRV + const DAI + const DASH + const DCR + const DOGE + const DOT + const DYDX + const ENJ + const ENS + const EOS + const ETC + const ETH + const ETHW + const FIL + const FLM + const FLOW + const GALA + const GAS + const HT + const IOST + const IOTA + const KSM + const Kline_15min + const Kline_1day + const Kline_1h + const Kline_1min + const Kline_1week + const Kline_30min + const Kline_4h + const Kline_5min + const Kline_60min + const Kline_6h + const LDO + const LTC + const MEME + const MINA + const NEAR + const NEO + const OKB + const OKT + const OKX + const OP + const ORDI + const OrderStatus_Canceled + const OrderStatus_Canceling + const OrderStatus_Finished + const OrderStatus_PartFinished + const OrderStatus_Pending + const Order_Client_ID__Opt_Key + const PEPE + const PERP + const PLG + const QTUM + const RACA + const RVN + const SAND + const SC + const SHIB + const SOL + const STORJ + const SUI + const SUSHI + const TRADE + const TRB + const TRX + const UNI + const USD + const USDC + const USDT + const VELO + const WAVES + const WBTC + const XRP + const XTZ + const YFI + const YFII + const ZEC + const ZYRO + type Account struct + AvailableBalance float64 + Balance float64 + Coin string + FrozenBalance float64 + type CurrencyPair struct + BaseSymbol string + ContractAlias string + ContractDeliveryDate int64 + ContractVal float64 + ContractValCurrency string + MarketQty float64 + MaxQty float64 + MinQty float64 + PricePrecision int + QtyPrecision int + QuoteSymbol string + SettlementCurrency string + Symbol string + type Depth struct + Asks DepthItems + Bids DepthItems + Pair CurrencyPair + UTime time.Time + type DepthItem struct + Amount float64 + Price float64 + type DepthItems []DepthItem + func (dr DepthItems) Len() int + func (dr DepthItems) Less(i, j int) bool + func (dr DepthItems) Swap(i, j int) + type FundingRate struct + Rate float64 + Symbol string + Tm int64 + type FuturesAccount struct + AvailEq float64 + Coin string + Eq float64 + FrozenBal float64 + MgnRatio float64 + RiskRate float64 + Upl float64 + type FuturesPosition struct + AvailQty float64 + AvgPx float64 + Lever float64 + LiqPx float64 + Pair CurrencyPair + PosSide OrderSide + Qty float64 + Upl float64 + UplRatio float64 + type Kline struct + Close float64 + High float64 + Low float64 + Open float64 + Pair CurrencyPair + Timestamp int64 + Vol float64 + type KlinePeriod string + type OptionParameter struct + Key string + Value string + func (OptionParameter) OrderClientID(cid string) OptionParameter + type Order struct + CId string + CanceledAt int64 + CreatedAt int64 + ExecutedQty float64 + Fee float64 + FeeCcy string + FinishedAt int64 + Id string + OrderTy OrderType + Pair CurrencyPair + Price float64 + PriceAvg float64 + Qty float64 + Side OrderSide + Status OrderStatus + type OrderSide string + const Futures_CloseBuy + const Futures_CloseSell + const Futures_OpenBuy + const Futures_OpenSell + const Spot_Buy + const Spot_Sell + type OrderStatus int + func (s OrderStatus) String() string + type OrderType string + const OrderType_Limit + const OrderType_Market + const OrderType_opponent + type Ticker struct + Buy float64 + High float64 + Last float64 + Low float64 + Pair CurrencyPair + Percent float64 + Sell float64 + Timestamp int64 + Vol float64