Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/amir-the-h/okex
/ functions
Functions
179 in github.com/amir-the-h/okex
⨍
Functions
179
◇
Types & classes
320
Method
GetTakerFlow
GetTakerFlow This shows the relative buy/sell volume for calls and puts. It shows whether traders are bullish or bearish on price and volatility. htt
api/rest/trade_data.go:179
Method
GetTakerVolume
GetTakerVolume This is the taker volume for both buyers and sellers. This shows the influx and exit of funds in and out of {coin}. https://www.okex.c
api/rest/trade_data.go:43
Method
GetTicker
GetTicker Retrieve the latest price snapshot, best bid/ask price, and trading volume in the last 24 hours. https://www.okex.com/docs-v5/en/#rest-api-
api/rest/market.go:44
Method
GetTickers
GetTickers Retrieve the latest price snapshot, best bid/ask price, and trading volume in the last 24 hours. https://www.okex.com/docs-v5/en/#rest-api
api/rest/market.go:27
Method
GetTrades
GetTrades Retrieve the recent transactions of an instrument. https://www.okex.com/docs-v5/en/#rest-api-market-data-get-trades
api/rest/market.go:163
Method
GetTransactionDetails
GetTransactionDetails Retrieve recently-filled transaction details in the last 3 day. https://www.okex.com/docs-v5/en/#rest-api-trade-get-order-histo
api/rest/trade.go:201
Method
GetUnderlying
GetUnderlying https://www.okex.com/docs-v5/en/#rest-api-public-data-get-underlying
api/rest/public_data.go:230
Method
GetWithdrawalHistory
GetWithdrawalHistory Retrieve the withdrawal records according to the currency, withdrawal status, and time range in reverse chronological order. The
api/rest/funding.go:152
Method
HistoryTransfer
HistoryTransfer applies to master accounts only https://www.okex.com/docs-v5/en/#rest-api-subaccount-history-of-sub-account-transfer
api/rest/sub_account.go:137
Method
IncreaseDecreaseMargin
IncreaseDecreaseMargin Increase or decrease the margin of the isolated position. https://www.okex.com/docs-v5/en/#rest-api-account-increase-decrease-
api/rest/account.go:213
Method
IndexCandlesticks
IndexCandlesticks Retrieve the candlesticks data of the index. Data will be pushed every 500 ms. https://www.okex.com/docs-v5/en/#websocket-api-publi
api/ws/public.go:329
Method
IndexTickers
IndexTickers Retrieve index tickers data https://www.okex.com/docs-v5/en/#websocket-api-public-channels-index-tickers-channel
api/ws/public.go:354
Method
Instruments
Instruments The full instrument list will be pushed for the first time after subscription. Subsequently, the instruments will be pushed if there's any
api/ws/public.go:43
Method
ManageTransfers
ManageTransfers applies to master accounts only https://www.okex.com/docs-v5/en/#rest-api-subaccount-master-accounts-manage-the-transfers-between-sub
api/rest/sub_account.go:154
Method
MarkPrice
MarkPrice Retrieve the mark price. Data will be pushed every 200 ms when the mark price changes, and will be pushed every 10 seconds when the mark pri
api/ws/public.go:183
Method
MarkPriceCandlesticks
MarkPriceCandlesticks Retrieve the candlesticks data of the mark price. Data will be pushed every 500 ms. https://www.okex.com/docs-v5/en/#websocket-
api/ws/public.go:206
Method
OPTIONSummary
OPTIONSummary Retrieve detailed pricing information of all OPTION contracts. Data will be pushed at once. https://www.okex.com/docs-v5/en/#websocket-
api/ws/public.go:283
Method
OpenInterest
OpenInterest Retrieve the open interest. Data will be pushed every 3 seconds. https://www.okex.com/docs-v5/en/#websocket-api-public-channels-open-int
api/ws/public.go:89
Method
Order
Order Retrieve position information. Initial snapshot will be pushed according to subscription granularity. Data will be pushed when triggered by even
api/ws/private.go:100
Method
PiggyBankPurchaseRedemption
PiggyBankPurchaseRedemption https://www.okex.com/docs-v5/en/#rest-api-funding-piggybank-purchase-redemption
api/rest/funding.go:168
Method
PlaceAlgoOrder
PlaceAlgoOrder The algo order includes trigger order, oco order, conditional order,iceberg order and twap order. `iceberg` order and `twap` order jus
api/rest/trade.go:223
Method
PlaceMultipleOrders
PlaceMultipleOrders Cancel an incomplete order. https://www.okex.com/docs-v5/en/#rest-api-trade-place-multiple-orders
api/rest/trade.go:51
Method
PlaceOrder
PlaceOrder You can place an order only if you have sufficient funds. https://www.okex.com/docs-v5/en/#rest-api-trade-get-positions
api/rest/trade.go:27
Method
PlaceOrder
PlaceOrder You can place an order only if you have sufficient funds. https://www.okex.com/docs-v5/en/#websocket-api-trade-place-order Place orders i
api/ws/trade.go:28
Method
Position
Position Retrieve position information. Initial snapshot will be pushed according to subscription granularity. Data will be pushed when triggered by e
api/ws/private.go:54
Method
PriceLimit
PriceLimit Retrieve the maximum buy price and minimum sell price of the instrument. Data will be pushed every 5 seconds when there are changes in limi
api/ws/public.go:231
Method
Process
(data []byte, e *events.Basic)
api/ws/private.go:119
Method
QueryAPIKey
QueryAPIKey applies to master accounts only https://www.okex.com/docs-v5/en/#rest-api-subaccount-query-the-apikey-of-a-sub-account
api/rest/sub_account.go:65
Method
ResetAPIKey
ResetAPIKey applies to master accounts only https://www.okex.com/docs-v5/en/#rest-api-subaccount-reset-the-apikey-of-a-sub-account
api/rest/sub_account.go:82
Method
SetChannels
SetChannels to receive certain events on separate channel
api/ws/client.go:205
Method
SetEventChannels
(structuredEventCh chan interface{}, rawEventCh chan *events.Basic)
api/ws/client.go:218
Method
SetGreeks
SetGreeks Set the display type of Greeks. https://www.okex.com/docs-v5/en/#rest-api-account-set-greeks-m-bs
api/rest/account.go:323
Method
SetLeverage
SetLeverage The following are the setting leverage cases for an instrument: Set leverage for isolated MARGIN at pairs level. Set leverage for cross
api/rest/account.go:158
Method
SetPositionMode
SetPositionMode FUTURES and SWAP support both long/short mode and net mode. In net mode, users can only have positions in one direction; In long/short
api/rest/account.go:133
Method
Status
Status Get event status of system upgrade https://www.okex.com/docs-v5/en/#rest-api-status
api/rest/client.go:115
Method
String
()
definitions.go:302
Method
Tickers
Tickers Retrieve the last traded price, bid price, ask price and 24-hour trading volume of instruments. Data will be pushed every 100 ms. https://www
api/ws/public.go:66
Method
Trades
Trades Retrieve the recent trades data. Data will be pushed whenever there is a trade. https://www.okex.com/docs-v5/en/#websocket-api-public-channels
api/ws/public.go:135
Method
UAccount
UAccount https://www.okex.com/docs-v5/en/#websocket-api-private-channel-account-channel
api/ws/private.go:42
Method
UBalanceAndPosition
UBalanceAndPosition unsubscribes a position channel https://www.okex.com/docs-v5/en/#websocket-api-private-channel-balance-and-position-channel
api/ws/private.go:88
Method
UCandlesticks
UCandlesticks https://www.okex.com/docs-v5/en/#websocket-api-public-channels-candlesticks-channel
api/ws/public.go:123
Method
UEstimatedDeliveryExercisePrice
UEstimatedDeliveryExercisePrice https://www.okex.com/docs-v5/en/#websocket-api-public-channels-estimated-delivery-exercise-price-channel
api/ws/public.go:171
Method
UFundingRate
UFundingRate https://www.okex.com/docs-v5/en/#websocket-api-public-channels-funding-rate-channel
api/ws/public.go:317
Method
UIndexCandlesticks
UIndexCandlesticks https://www.okex.com/docs-v5/en/#websocket-api-public-channels-index-candlesticks-channel
api/ws/public.go:341
Method
UIndexTickers
UIndexTickers https://www.okex.com/docs-v5/en/#websocket-api-public-channels-index-tickers-channel
api/ws/public.go:365
Method
UInstruments
UInstruments https://www.okex.com/docs-v5/en/#websocket-api-public-channels-instruments-channel
api/ws/public.go:54
Method
UMarkPrice
UMarkPrice https://www.okex.com/docs-v5/en/#websocket-api-public-channels-mark-price-channel
api/ws/public.go:194
Method
UMarkPriceCandlesticks
UMarkPriceCandlesticks https://www.okex.com/docs-v5/en/#websocket-api-public-channels-mark-price-candlesticks-channel
api/ws/public.go:218
Method
UOPTIONSummary
UOPTIONSummary https://www.okex.com/docs-v5/en/#websocket-api-public-channels-option-summary-channel
api/ws/public.go:294
Method
UOpenInterest
UOpenInterest https://www.okex.com/docs-v5/en/#websocket-api-public-channels-open-interest-channel
api/ws/public.go:100
Method
UOrder
UOrder https://www.okex.com/docs-v5/en/#websocket-api-private-channel-order-channel
api/ws/private.go:111
Method
UOrderBook
UOrderBook https://www.okex.com/docs-v5/en/#websocket-api-public-channels-order-book-channel
api/ws/public.go:271
Method
UPosition
UPosition https://www.okex.com/docs-v5/en/#websocket-api-private-channel-positions-channel
api/ws/private.go:65
Method
UPriceLimit
UPriceLimit https://www.okex.com/docs-v5/en/#websocket-api-public-channels-price-limit-channel
api/ws/public.go:242
Method
UTickers
UTickers https://www.okex.com/docs-v5/en/#websocket-api-public-channels-tickers-channel
api/ws/public.go:77
Method
UTrades
UTrades https://www.okex.com/docs-v5/en/#websocket-api-public-channels-trades-channel
api/ws/public.go:146
Method
UnmarshalJSON
(s []byte)
definitions.go:304
Method
UnmarshalJSON
(s []byte)
definitions.go:317
Method
UnmarshalJSON
(s []byte)
definitions.go:330
Method
UnmarshalJSON
(s []byte)
definitions.go:343
Method
UnmarshalJSON
(s []byte)
definitions.go:356
Method
UnmarshalJSON
(s []byte)
definitions.go:369
Method
UnmarshalJSON
(s []byte)
definitions.go:382
Method
UnmarshalJSON
(s []byte)
definitions.go:395
Method
UnmarshalJSON
(s []byte)
definitions.go:408
Method
UnmarshalJSON
(buf []byte)
events/events.go:60
Method
UnmarshalJSON
(buf []byte)
models/tradedata/tradedata_models.go:63
Method
UnmarshalJSON
(buf []byte)
models/tradedata/tradedata_models.go:97
Method
UnmarshalJSON
(buf []byte)
models/tradedata/tradedata_models.go:126
Method
UnmarshalJSON
(buf []byte)
models/tradedata/tradedata_models.go:163
Method
UnmarshalJSON
(buf []byte)
models/tradedata/tradedata_models.go:200
Method
UnmarshalJSON
(buf []byte)
models/tradedata/tradedata_models.go:255
Method
UnmarshalJSON
(buf []byte)
models/tradedata/tradedata_models.go:310
Method
UnmarshalJSON
(buf []byte)
models/market/market_models.go:101
Method
UnmarshalJSON
(buf []byte)
models/market/market_models.go:135
Method
UnmarshalJSON
(buf []byte)
models/market/market_models.go:189
Method
ViewList
ViewList applies to master accounts only https://www.okex.com/docs-v5/en/#rest-api-subaccount-view-sub-account-list
api/rest/sub_account.go:28
Method
Withdrawal
Withdrawal Withdrawal of tokens. https://www.okex.com/docs-v5/en/#rest-api-funding-withdrawal
api/rest/funding.go:135
Function
main
()
examples/books.go:17
← previous
101–179 of 179, ranked by callers