MCPcopy Create free account

hub / github.com/amir-the-h/okex / functions

Functions179 in github.com/amir-the-h/okex

MethodGetTakerFlow
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
MethodGetTakerVolume
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
MethodGetTicker
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
MethodGetTickers
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
MethodGetTrades
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
MethodGetTransactionDetails
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
MethodGetUnderlying
GetUnderlying https://www.okex.com/docs-v5/en/#rest-api-public-data-get-underlying
api/rest/public_data.go:230
MethodGetWithdrawalHistory
GetWithdrawalHistory Retrieve the withdrawal records according to the currency, withdrawal status, and time range in reverse chronological order. The
api/rest/funding.go:152
MethodHistoryTransfer
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
MethodIncreaseDecreaseMargin
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
MethodIndexCandlesticks
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
MethodIndexTickers
IndexTickers Retrieve index tickers data https://www.okex.com/docs-v5/en/#websocket-api-public-channels-index-tickers-channel
api/ws/public.go:354
MethodInstruments
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
MethodManageTransfers
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
MethodMarkPrice
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
MethodMarkPriceCandlesticks
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
MethodOPTIONSummary
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
MethodOpenInterest
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
MethodOrder
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
MethodPiggyBankPurchaseRedemption
PiggyBankPurchaseRedemption https://www.okex.com/docs-v5/en/#rest-api-funding-piggybank-purchase-redemption
api/rest/funding.go:168
MethodPlaceAlgoOrder
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
MethodPlaceMultipleOrders
PlaceMultipleOrders Cancel an incomplete order. https://www.okex.com/docs-v5/en/#rest-api-trade-place-multiple-orders
api/rest/trade.go:51
MethodPlaceOrder
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
MethodPlaceOrder
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
MethodPosition
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
MethodPriceLimit
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
MethodProcess
(data []byte, e *events.Basic)
api/ws/private.go:119
MethodQueryAPIKey
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
MethodResetAPIKey
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
MethodSetChannels
SetChannels to receive certain events on separate channel
api/ws/client.go:205
MethodSetEventChannels
(structuredEventCh chan interface{}, rawEventCh chan *events.Basic)
api/ws/client.go:218
MethodSetGreeks
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
MethodSetLeverage
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
MethodSetPositionMode
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
MethodStatus
Status Get event status of system upgrade https://www.okex.com/docs-v5/en/#rest-api-status
api/rest/client.go:115
MethodString
()
definitions.go:302
MethodTickers
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
MethodTrades
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
MethodUAccount
UAccount https://www.okex.com/docs-v5/en/#websocket-api-private-channel-account-channel
api/ws/private.go:42
MethodUBalanceAndPosition
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
MethodUCandlesticks
UCandlesticks https://www.okex.com/docs-v5/en/#websocket-api-public-channels-candlesticks-channel
api/ws/public.go:123
MethodUEstimatedDeliveryExercisePrice
UEstimatedDeliveryExercisePrice https://www.okex.com/docs-v5/en/#websocket-api-public-channels-estimated-delivery-exercise-price-channel
api/ws/public.go:171
MethodUFundingRate
UFundingRate https://www.okex.com/docs-v5/en/#websocket-api-public-channels-funding-rate-channel
api/ws/public.go:317
MethodUIndexCandlesticks
UIndexCandlesticks https://www.okex.com/docs-v5/en/#websocket-api-public-channels-index-candlesticks-channel
api/ws/public.go:341
MethodUIndexTickers
UIndexTickers https://www.okex.com/docs-v5/en/#websocket-api-public-channels-index-tickers-channel
api/ws/public.go:365
MethodUInstruments
UInstruments https://www.okex.com/docs-v5/en/#websocket-api-public-channels-instruments-channel
api/ws/public.go:54
MethodUMarkPrice
UMarkPrice https://www.okex.com/docs-v5/en/#websocket-api-public-channels-mark-price-channel
api/ws/public.go:194
MethodUMarkPriceCandlesticks
UMarkPriceCandlesticks https://www.okex.com/docs-v5/en/#websocket-api-public-channels-mark-price-candlesticks-channel
api/ws/public.go:218
MethodUOPTIONSummary
UOPTIONSummary https://www.okex.com/docs-v5/en/#websocket-api-public-channels-option-summary-channel
api/ws/public.go:294
MethodUOpenInterest
UOpenInterest https://www.okex.com/docs-v5/en/#websocket-api-public-channels-open-interest-channel
api/ws/public.go:100
MethodUOrder
UOrder https://www.okex.com/docs-v5/en/#websocket-api-private-channel-order-channel
api/ws/private.go:111
MethodUOrderBook
UOrderBook https://www.okex.com/docs-v5/en/#websocket-api-public-channels-order-book-channel
api/ws/public.go:271
MethodUPosition
UPosition https://www.okex.com/docs-v5/en/#websocket-api-private-channel-positions-channel
api/ws/private.go:65
MethodUPriceLimit
UPriceLimit https://www.okex.com/docs-v5/en/#websocket-api-public-channels-price-limit-channel
api/ws/public.go:242
MethodUTickers
UTickers https://www.okex.com/docs-v5/en/#websocket-api-public-channels-tickers-channel
api/ws/public.go:77
MethodUTrades
UTrades https://www.okex.com/docs-v5/en/#websocket-api-public-channels-trades-channel
api/ws/public.go:146
MethodUnmarshalJSON
(s []byte)
definitions.go:304
MethodUnmarshalJSON
(s []byte)
definitions.go:317
MethodUnmarshalJSON
(s []byte)
definitions.go:330
MethodUnmarshalJSON
(s []byte)
definitions.go:343
MethodUnmarshalJSON
(s []byte)
definitions.go:356
MethodUnmarshalJSON
(s []byte)
definitions.go:369
MethodUnmarshalJSON
(s []byte)
definitions.go:382
MethodUnmarshalJSON
(s []byte)
definitions.go:395
MethodUnmarshalJSON
(s []byte)
definitions.go:408
MethodUnmarshalJSON
(buf []byte)
events/events.go:60
MethodUnmarshalJSON
(buf []byte)
models/tradedata/tradedata_models.go:63
MethodUnmarshalJSON
(buf []byte)
models/tradedata/tradedata_models.go:97
MethodUnmarshalJSON
(buf []byte)
models/tradedata/tradedata_models.go:126
MethodUnmarshalJSON
(buf []byte)
models/tradedata/tradedata_models.go:163
MethodUnmarshalJSON
(buf []byte)
models/tradedata/tradedata_models.go:200
MethodUnmarshalJSON
(buf []byte)
models/tradedata/tradedata_models.go:255
MethodUnmarshalJSON
(buf []byte)
models/tradedata/tradedata_models.go:310
MethodUnmarshalJSON
(buf []byte)
models/market/market_models.go:101
MethodUnmarshalJSON
(buf []byte)
models/market/market_models.go:135
MethodUnmarshalJSON
(buf []byte)
models/market/market_models.go:189
MethodViewList
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
MethodWithdrawal
Withdrawal Withdrawal of tokens. https://www.okex.com/docs-v5/en/#rest-api-funding-withdrawal
api/rest/funding.go:135
Functionmain
()
examples/books.go:17
← previous101–179 of 179, ranked by callers