package
0.0.0-20250311023717-5c21e974eed8
Repository: https://github.com/thrasher-corp/gocryptotrader.git
Documentation: pkg.go.dev

# README

GoCryptoTrader package Okx

Build Status Software License GoDoc Coverage Status Go Report Card

This okx package is part of the GoCryptoTrader codebase.

This is still in active development

You can track ideas, planned features and what's in progress on our GoCryptoTrader Kanban board.

Join our slack to discuss all things related to GoCryptoTrader! GoCryptoTrader Slack

Okx Exchange

Current Features

  • REST Support
  • Websocket Support

How to enable

Enable via configuration

  • Individual package example below:
	// Exchanges will be abstracted out in further updates and examples will be
	// supplied then

How to do REST public/private calls

  • If enabled via "configuration".json file the exchange will be added to the IBotExchange array in the go var bot Bot and you will only be able to use the wrapper interface functions for accessing exchange data. View routines.go for an example of integration usage with GoCryptoTrader. Rudimentary example below:

main.go

var ok exchange.IBotExchange

for i := range bot.Exchanges {
	if bot.Exchanges[i].GetName() == "Okx" {
		y = bot.Exchanges[i]
	}
}

// Public calls - wrapper functions

// Fetches current ticker information
tick, err := ok.UpdateTicker(...)
if err != nil {
	// Handle error
}

// Fetches current orderbook information
ob, err := ok.UpdateOrderbook(...)
if err != nil {
	// Handle error
}

// Private calls - wrapper functions - make sure your APIKEY, APISECRET, and API_CLIENT_ID are
// set and AuthenticatedAPISupport is set to true

// Fetches current account information
accountInfo, err := ok.GetAccountInfo()
if err != nil {
	// Handle error
}
  • If enabled via individually importing package, rudimentary example below:
// Public calls

// Fetches current ticker information
ticker, err := ok.GetTicker()
if err != nil {
	// Handle error
}

// Fetches current orderbook information
ob, err := ok.GetOrderBook()
if err != nil {
	// Handle error
}

// Fetches historic trade data within the timeframe provided
tradeDatas, err := ok.GetHistoricTrades(...)
if err != nil {
	// Handle error
}


// Returns an estimate of fee based on the type of transaction
fee, err := ok.GetFeeByType(...)
if err != nil {
	// Handle error
}

// Private calls - make sure your APIKEY and APISECRET are set and
// AuthenticatedAPISupport is set to true

// Submits an order and the exchange and returns its tradeID
orderID, err := ok.SubmitOrder(...)
if err != nil {
	// Handle error
}

// ModifyOrder will allow of changing orderbook placement and limit to market conversion
updatedOrder, err := ok.ModifyOrder(...)
if err != nil {
	// Handle error
}

How to do Websocket public/private calls

	// Exchanges will be abstracted out in further updates and examples will be
	// supplied then

Please click GoDocs chevron above to view current GoDoc information for this package

Contribution

Please feel free to submit any pull requests or suggest any desired features to be added.

When submitting a PR, please abide by our coding guidelines:

  • Code must adhere to the official Go formatting guidelines (i.e. uses gofmt).
  • Code must be documented adhering to the official Go commentary guidelines.
  • Code must adhere to our coding style.
  • Pull requests need to be based on and opened against the master branch.

Donations

If this framework helped you in any way, or you would like to support the developers working on it, please donate Bitcoin to:

bc1qk0jareu4jytc0cfrhr5wgshsq8282awpavfahc

# Functions

GetInstrumentTypeFromAssetItem returns a string representation of asset.Item; which is an equivalent term for InstrumentType in Okx exchange.
GetRateLimit returns a RateLimit instance, which implements the request.Limiter interface.
IntervalFromString returns a kline.Interval instance from string.

# Constants

AlgoOrdTypeContractGrid algo order type, contract_grid.
AlgoOrdTypeGrid algo order type,grid.
candlestickState represents index candlestick states.
candlestickState represents index candlestick states.
TradeModeCash trade mode, cash.
TradeModeCross trade mode, cross.
TradeModeIsolated trade mode, isolated.

# Variables

ErrorCodes and their corresponding error messages.

# Structs

Account holds currency account balance and related information.
AccountAndPositionRisk holds information.
AccountAssetValuation represents view account asset valuation data.
AccountBalanceData represents currency account balance.
AccountConfigurationResponse represents account configuration response.
AccountDetail account detail information.
AccountInstrument represents an account instrument.
AccountMode holds account mode.
AccountPosition account position.
AccountPositionHistory hold account position history.
AccountRateLimit represents an account rate limit details.
AccountRiskState represents account risk state.
ActiveFundingOrder represents active purchase orders.
AdjustMarginBalanceResponse represents algo ID for response for margin balance adjust request.
ADLWarning represents auto-deleveraging warning.
AffilateInviteesDetail represents affiliate invitee's detail.
AffilateRebateInfo represents rebate information.
AlgoOrder algo order requests response.
AlgoOrderCancelParams algo order request parameter.
AlgoOrderDetail represents an algo order detail.
AlgoOrderInfo represents an algo order info.
AlgoOrderParams holds algo order information.
AlgoOrderPosition represents algo order position detailed data.
AlgoOrderResponse holds algo order information.
AlgoOrderWithdrawalProfit algo withdrawal order profit info.
AlgoOrdInfo represents TP/SL info attached when placing an order.
AmendAlgoOrderParam request parameter to amend an algo order.
AmendAlgoResponse holds response information of amending an algo order.
AmendOrderRequestParams represents amend order requesting parameters.
AmendRecurringOrderParam holds recurring order params.
AmendSpreadOrderParam holds amend parameters for spread order.
AnnouncementDetail represents an exchange's announcement detail.
AnnouncementTypeInfo represents an announcement type sample and it's description.
APYItem holds annual percentage yield record.
ArchiveReference holds recently-filled transaction details archive link and timestamp information.
AssetBalance represents account owner asset balance.
AssetBillDetail represents the billing record.
AutoLoan holds auto loan information.
AutoRepay represents an auto-repay request and response.
BalanceAndPositionData represents balance and position data with the push time.
BalanceData represents currency and it's Cash balance with the update time.
BETHAssetsBalance balance is a snapshot summarized all BETH assets.
BillsArchiveInfo represents a bill archive information.
BillsDetailQueryParameter represents bills detail query parameter.
BillsDetailResp represents response for applying for bill-details.
BillsDetailResponse represents account bills information.
BlockTicker holds block trading information.
BlockTrade represents a block trade.
Book5Data stores the orderbook data for orderbook 5 websocket.
BorrowAndRepay manual holds manual borrow and repay in quick margin mode.
BorrowInterestAndLimitResponse represents borrow interest and limit rate for different loan type.
BorrowOrRepay represents a borrow and repay operation response.
BorrowRepayHistory represents borrow and repay history item data.
BorrowRepayHistoryItem holds borrow or repay history item information.
BorrowRepayItem represents a borrow/repay history.
CancelClosePositionOrder holds close position order parameter cancellation parameter.
CancelFundingParam cancel purchase or redemption request.
CancelMassReqParam holds MMP batch cancel request parameters.
CancelMMPResponse holds the result of a cancel MMP response.
CancelOrderRequestParam represents order parameters to cancel an order.
CancelPurchaseOrRedemptionResponse represents a response for canceling a purchase or redemption.
CancelQuoteRequestParams represents cancel quote request params.
CancelQuoteResponse represents cancel quote response.
CancelQuotesRequestParams represents cancel multiple quotes request params.
CancelResponse represents a pending order cancellation response.
CancelRFQRequestParam represents cancel RFQ order request params.
CancelRFQRequestsParam represents cancel multiple RFQ orders request params.
CancelRFQResponse represents cancel RFQ orders response.
CandleStick stores candlestick price data.
CandlestickHistoryItem retrieves historical candlestick charts for the index or mark price from recent years.
CandlestickMarkPrice represents candlestick mark price push data as a result of subscription to "mark-price-candle*" channel.
CloseLeadingPositionParam request parameter for closing leading position.
ClosePositionContractGridResponse holds contract grid close position response data.
ClosePositionParams holds close position parameters.
ClosePositionResponse response data for close position.
ClosePositionsRequestParams input parameters for close position endpoints.
ComputeInvestmentDataParam holds parameter values for computing investment data.
ComputeMarginBalance represents compute margin amount request response.
ContractGridAlgoOrder represents contract grid algo order.
ContractOpenInterestHistoryItem represents an open interest information for contract.
ContractTakerVolume represents a contract taker sell and buy volume.
ConvertCurrency represents currency conversion detailed data.
ConvertCurrencyPair holds information related to conversion between two pairs.
ConvertHistory holds convert trade history response.
ConvertTradeInput represents convert trade request input.
ConvertTradeResponse represents convert trade response.
CopySetting represents a copy setting response.
CopyTradingLeadTrader represents a lead trader information.
CopyTradingNotification holds copy-trading notifications.
CounterpartiesResponse represents.
CreateQuoteParams holds information related to create quote.
CreateRFQInput RFQ create method input.
CurrencyDepositResponseItem represents the deposit address information item.
CurrencyOneClickRepay represents the currency used for one-click repayment.
CurrencyResponse represents a currency item detail response data.
CurrencyTakerFlow holds the taker volume information for a single currency.
DeliveryEstimatedPrice holds an estimated delivery or exercise price response.
DeliveryHistory represents list of delivery history detail items and timestamp information.
DeliveryHistoryDetail holds instrument ID and delivery price information detail.
DepositHistoryResponseItem deposit history response item.
DepositWithdrawStatus holds deposit withdraw status info.
DiscountRate represents the discount rate amount, currency, and other discount related information.
DiscountRateInfoItem represents discount info list item for discount rate response.
EasyConvertDetail represents easy convert currencies list and their detail.
EasyConvertFromData represents convert currency from detail.
EasyConvertItem represents easy convert place order response.
EconomicCalendar represents macro-economic calendar data.
EconomicCalendarResponse represents response for economic calendar.
EstimateQuoteRequestInput represents estimate quote request parameters.
EstimateQuoteResponse represents estimate quote response data.
ExchangeInfo represents exchange information.
ExecuteQuoteParams represents Execute quote request params.
ExecuteQuoteResponse represents execute quote response.
ExpiryOpenInterestAndVolume represents open interest and trading volume of calls and puts for each upcoming expiration.
FiatDepositPaymentMethods represents a fiat deposit payment methods.
FiatItemInfo represents fiat currency with taker and maker fee details.
FiatOrderDetail represents a fiat deposit/withdrawal order detail.
FiatWithdrawalPaymentMethods represents a detailed information about fiat asset withdrawal payment methods and accounts.
FillArchiveParam transaction detail param for 2 year.
FirstCopySettings holds parameters first copy settings for the certain lead trader.
FixedLoanBorrowLimitInformation represents a fixed loan borrow information.
FixedLoanBorrowOrderDetail represents a borrow order detail.
FixedLoanBorrowQuote represents a fixed loan quote details.
FundingBalance holds function balance.
FundingRateResponse response data for the Funding Rate for an instruction type.
FundingTransferRequestInput represents funding account request input.
FundingTransferResponse represents funding transfer and trading account transfer response.
GreeksItem represents greeks response.
GreeksType represents for greeks type response.
GridAIParameterResponse represents gri AI parameter response.
GridAlgoOrder represents grid algo order.
GridAlgoOrderAmend represents amend algo order response.
GridAlgoOrderIDResponse represents grid algo order.
GridAlgoOrderResponse is a complete information of grid algo order item response.
GridSubOrderData represents a single sub order detailed info.
IncreaseDecreaseMargin represents increase or decrease the margin of the isolated position response.
IncreaseDecreaseMarginInput represents increase or decrease the margin of the isolated position.
IndexComponent represents index component data on the market.
IndexComponentItem an item representing the index component item.
IndexTicker represents data from the index ticker.
Instrument representing an instrument with open contract.
InstrumentFamilyTrade represents transaction information of instrument.
InstrumentsFetchParams request params for requesting list of instruments.
InsuranceFundInformation holds insurance fund information data.
InsuranceFundInformationDetail represents an Insurance fund information item for a single currency and type.
InsuranceFundInformationRequestParams insurance fund balance information.
InterestAccruedData represents interest rate accrued response.
InterestAndLoanDetail represents an interest rate and loan quota information.
InterestRateLoanQuotaBasic holds the basic Currency, loan,and interest rate information.
InterestRateLoanQuotaItem holds the basic Currency, loan,interest rate, and other level and VIP related information.
InterestRateResponse represents interest rate response.
InvestmentData holds investment data parameter.
InvestmentResult holds investment response.
IsolatedMode represents Isolated margin trading settings.
LeadingInstrumentItem represents leading instrument info and it's status.
LeadPosition holds lead trader completed leading position.
LeadTraderCurrencyPreference holds public preference currency.
LeadTraderCurrentLeadPosition holds leading positions of lead trader.
LeadTradersRank represents lead traders rank info.
LeadTraderStat represents lead trader performance info.
LendingAPIHistoryItem represents a lending API history item.
LendingHistory holds lending history responses.
LendingOrderDetail represents a lending order detail.
LendingOrderParam represents a lending order request parameters.
LendingRate represents the response containing the lending rate.
LendingSubOrder represents a lending sub-order detail.
LendingVolume represents a lending volume detail for a specific currency.
LeverageEstimatedInfo leverage estimated info response.
LeverageInfo holds leverage information.
LeverageResponse instrument ID leverage response.
Leverages holds batch leverage info.
LightningDepositItem for creating an invoice.
LightningWithdrawalRequestInput to request Lightning Withdrawal requests.
LightningWithdrawalResponse response item for holding lightning withdrawal requests.
LimitPriceResponse hold an information for.
LiquidationOrder represents liquidation order item detailed information.
LiquidationOrderDetailItem represents the detail information of liquidation order.
LiquidationOrderRequestParams holds information to request liquidation orders.
LoanBorrowAndReplay loans borrow and repay.
LoanBorrowAndReplayInput represents currency VIP borrow or repay request params.
LongShortRatio represents the ratio of users with net long vs net short positions for futures and perpetual swaps.
MakerInstrumentSetting represents set quote product setting info.
MarginBalanceParam represents compute margin balance request param.
MarginLendRatioItem represents margin lend ration information and creation timestamp.
MarkPrice represents a mark price information for a single instrument ID.
MaximumBuyAndSell get maximum buy , sell amount or open amount.
MaximumLoanInstrument represents maximum loan of an instrument ID.
MaximumTradableAmount represents get maximum tradable amount response.
MaximumWithdrawal represents maximum withdrawal amount query response.
MMPConfig holds request/response structure to set Market Maker Protection (MMP).
MMPConfigDetail holds MMP config details.
MMPStatusResponse holds MMP reset status response.
MonthlyStatement represents the information and download link for a monthly statement document.
NonTradableAsset holds non-tradable asset detail.
Offer represents an investment offer information for different 'staking' and 'defi' protocols.
OfferInvestData represents currencies invest data information for an offer.
Okx is the overarching type across this package.
OpenInterest Retrieve the total open interest for contracts on OKX.
OpenInterestVolume represents open interest and trading volume item for currencies of futures and perpetual swaps.
OpenInterestVolumeRatio represents open interest and trading volume ratio for currencies of futures and perpetual swaps.
OperationResponse holds common operation identification.
OptionMarketDataResponse holds response data for option market data.
OptionTickBand holds option band information.
OptionTrade holds option trade item.
OracleSmartContractResponse represents the cryptocurrency price signed using the Open Oracle smart contract.
OrderbookItemDetail represents detailed information about currency bids.
OrderBookResponseDetail contains the ask and bid orders, structured with fields that include the timestamp of order generation.
OrderData response message for place, cancel, and amend an order requests.
OrderDetail holds detailed information about an order.
OrderDetailRequestParam payload data to request order detail.
OrderHistoryRequestParams holds parameters to request order data history of last 7 days.
OrderIDAndState represents an orderID and state information.
OrderIDResponse represents purchase order ID.
OrderLeg represents legs information for both websocket and REST available Quote information.
OrderListRequestParams represents order list requesting parameters.
OrderPreCheckParams represents an order pre-check parameters.
OrderPreCheckResponse represents an order pre-checks response of account information for placing orders.
PendingOrderItem represents a pending order Item in pending orders list.
PermissionOfTransfer represents subaccount transfer information and it's permission.
PlaceEasyConvertParam represents easy convert request params.
PlaceOrderRequestParam requesting parameter for placing an order.
PlaceRecurringBuyOrderParam holds parameters for placing recurring order.
PMLimitationResponse represents portfolio margin mode limitation for specific underlying.
PositionBuilderData represent a position item.
PositionBuilderDetail represents details of portfolio margin information for virtual position/assets or current position of the user.
PositionBuilderInput represents request parameter for position builder item.
PositionBuilderParam represents a position builder parameters.
PositionBuilderResponse represents a position builder endpoint response.
PositionData holds account position data.
PositionDataDetail position data information for the websocket push data.
PositionIDInfo holds place positions information.
PositionInfo represents a positions detail.
PositionItem represents current position of the user.
PositionMode represents position mode response.
PositionTiers represents position tier detailed information.
PremiumInfo represents data on premiums for the past 6 months.
ProductInfo represents ETH staking information.
ProfitSharingItem holds profit sharing information.
PublicBlockTrades holds public block trades.
PublicBorrowHistory holds a currencies borrow history.
PublicBorrowInfo holds a currency's borrow info.
PublicLendingOffer represents a lending offer detail.
PublicTrade represents public trade item for option, block, and others.
PublicTradesResponse represents data will be pushed whenever there is a block trade.
PurchaseInvestDataItem represents purchase invest data information having the currency and amount information.
PurchaseRedeemHistory holds purchase and redeem history.
PurchaseRequestParam represents purchase request param specific product.
QuoteLeg the legs of the Quote.
QuoteProduct represents products which makers want to quote and receive RFQs for.
QuoteRequestParams request params.
QuoteResponse holds create quote response variables.
RecurringBuyOrder represents a recurring buy order instance.
RecurringBuySubOrder holds recurring buy sub order detail.
RecurringListItem holds recurring list item.
RecurringListItemDetailed holds a detailed instance of recurring list item.
RecurringOrderDeail holds detailed information about recurring order.
RecurringOrderItem holds recurring order info.
RecurringOrderResponse holds recurring order response.
RedeemRequestParam represents redeem request input param.
ReduceLiabilities represents a response after reducing liabilities.
ResponseSuccess holds responses having a status result value.
RFQOrderLeg represents RFQ Order responses leg.
RFQRequestParams represents get RFQ orders param.
RFQResponse RFQ response detail.
RFQTradeLeg RFQ trade response leg.
RFQTradeResponse RFQ trade response.
RFQTradesRequestParams represents RFQ trades request param.
RiskOffsetAmount represents risk offset amount.
RiskOffsetType represents risk offset type value.
RSIBacktestingResponse holds response for relative strength index(RSI) backtesting.
SavingBalanceResponse holds the response data for a savings balance.
SavingsPurchaseRedemptionInput input json to SavingPurchase Post method.
SavingsPurchaseRedemptionResponse formats the JSON response for the SavingPurchase or SavingRedemption POST methods.
ServerTime returning the server time instance.
SetLeverageInput represents set leverage request input.
SetLeverageResponse represents set leverage response.
SetLeveragesParam sets leverage parameter.
SetMultipleLeverageResponse represents multiple leverage response.
SetQuoteProductParam represents set quote product request param.
SetQuoteProductsResult represents set quote products result.
SignalBotEventHistory holds history information for signal bot.
SignalBotOrderDetail holds detail of signal bot order.
SignalBotPosition holds signal bot position information.
SimulatedAsset represents a simulated asset detail.
SimulatedPosition represents a simulated position detail of a new position builder.
SmallAssetConvertResponse represents a response of converting a small asset to OKB.
SpotGridAlgoData represents spot grid algo orders.
SpreadInstrument retrieve all available spreads based on the request parameters.
SpreadOrder holds spread order details.
SpreadOrderbook holds spread orderbook information.
SpreadOrderCancellationResponse represents a spread order cancellation response.
SpreadOrderInfo holds spread order response information.
SpreadOrderParam holds parameters for spread orders.
SpreadOrderResponse represents a spread create order response.
SpreadPublicTradeItem represents publicly available trade order instance.
SpreadTicker represents a ticker instance.
SpreadTrade holds spread trade transaction instance.
StopCopyingParameter holds stop copying request parameter.
StopGridAlgoOrderParam holds stop grid algo order parameter.
StopGridAlgoOrderRequest represents stop grid algo order request parameter.
StopRecurringBuyOrder stop recurring order.
StrikeOpenInterestAndVolume represents open interest and volume for both buyers and sellers of calls and puts.
SubAccounBorrowInterestAndLimit represents sub-account borrow interest and limit.
SubAccountAPIKeyParam represents Reset the APIKey of a sub-account request param.
SubAccountAPIKeyResponse represents sub-account api key reset response.
SubAccountAssetTransferParams represents subaccount asset transfer request parameters.
SubaccountBalanceDetail represents subaccount balance detail.
SubaccountBalanceResponse represents subaccount balance response.
SubaccountBillItem represents subaccount balance bill item.
SubaccountInfo represents subaccount information detail.
SubAccountLoanAllocationParam holds parameter for VIP sub-account loan allocation.
SubAccountMaximumWithdrawal holds sub-account maximum withdrawal information.
SubaccountName represents single subaccount name.
SubAccountTransfer holds sub-account transfer instance.
SubOrder holds signal bot sub orders.
SubscriptionInfo holds the channel and instrument IDs.
SubscriptionOperationInput represents the account channel input data.
SubTPSLParams represents take-profit and stop-loss price parameters to be used by algo orders.
SupportedCoinsData holds information about currencies supported by the trading data endpoints.
SurplusLimitDetail represents details of available amount across all sub-accounts.
SystemStatusResponse represents the system status and other details.
TakerVolume represents taker volume information with creation timestamp.
TickerResponse represents the detailed data from the market ticker endpoint.
TopTraderContractsLongShortRatio represents the timestamp and ratio information of top traders long and short accounts/positions.
TotalProfitSharing holds information about total amount of profit shared since joining the platform.
TPSLOrderParam holds Take profit and stop loss order parameters.
TradeFeeRate holds trade fee rate information for a given instrument type.
TradeOneClickRepayParam represents click one repay param.
TradeResponse represents the recent transaction instance.
TraderWeeklyProfitAndLoss represents lead trader weekly pnl.
TradingVolumeIn24HR response model.
TransactionDetail holds recently-filled transaction detail data.
TransactionDetailRequestParams retrieve recently-filled transaction details in the last 3 day.
TransferFundRateResponse represents funding transfer rate response.
TransferIDInfo represents master account transfer between subaccount.
TriggeredGridAlgoOrderInfo holds grid algo order info.
UnitConvertResponse unit convert response.
UsdCnyExchangeRate the exchange rate for converting from USD to CNV.
VIPInterestData holds interest accrued/deducted data.
VIPInterestRateAndLoanQuotaInformation holds interest rate and loan quoata information for VIP users.
VIPLoanOrder holds VIP loan items.
VIPLoanOrderDetail holds vip loan order detail.
WebsocketEventRequest contains event data for a websocket channel.
WebsocketLoginData represents the websocket login data input json data.
WithdrawalHistoryResponse represents the withdrawal response history.
WithdrawalInput represents request parameters for cryptocurrency withdrawal.
WithdrawalRecipientInformation represents a recipient information for withdrawal.
WithdrawalResponse cryptocurrency withdrawal response.
WsAccountChannelPushData holds the websocket push data following the subscription.
WsAdvancedAlgoOrder advanced algo order response.
WsAdvancedAlgoOrderDetail advanced algo order response pushed through the websocket conn.
WsAlgoOrder algo order detailed data.
WsAlgoOrderDetail algo order response pushed through the websocket conn.
WsBalanceAndPosition websocket push data for lis of BalanceAndPosition information.
WsBlockTicker represents websocket push data as a result of subscription to channel "block-tickers".
WsBlockTradeResponse represents a structure block order information.
WsContractGridAlgoOrder represents websocket push data for "grid-orders-contract" subscription.
WsDeliveryEstimatedPrice represents an estimated delivery/exercise price push data as a result of subscription to "estimated-price" channel.
WsDepositInfo represents a deposit information.
WsFundingRate represents websocket push data funding rate response.
WsGreekData greeks push data through websocket channel.
WsGreeks greeks push data with the subscription info through websocket channel.
WsGridSubOrderData to retrieve grid sub orders.
WsIndexTicker represents websocket push data index ticker response.
WSInstrumentResponse represents websocket instruments push message.
WsMarkPrice represents an estimated mark price push data as a result of subscription to "mark-price" channel.
WSOpenInterestResponse represents an open interest instance.
WsOperationInput for all websocket request inputs.
WsOptionSummary represents option summary.
WsOptionTrades represents option trade data.
WsOrder represents a websocket order.
WsOrderActionResponse holds websocket response Amendment request.
WsOrderBook order book represents order book push data which is returned as a result of subscription to "books*" channel.
WsOrderbook5 stores the orderbook data for orderbook 5 websocket.
WsOrderBookData represents a book order push data.
WsOrderResponse holds order list push data through the websocket connection.
WsPlaceOrderResponse place order response thought the websocket connection.
WsPositionResponse represents pushed position data through the websocket channel.
WsPublicTradesResponse represents websocket push data of structured block trades as a result of subscription to "public-struc-block-trades".
WsQuote represents websocket push data for "quotes" subscription.
WsQuoteData represents a single quote order information.
WsRFQ represents websocket push data for "rfqs" subscription.
WsRFQData represents rfq order response data streamed through the websocket channel.
WsSpotGridAlgoOrder represents websocket push data for "struc-block-trades" subscription.
WsSpreadOrder represents spread order detail.
WsSpreadOrderbook holds spread orderbook data.
WsSpreadOrderbookData represents orderbook response for spread instruments.
WsSpreadOrderbookItem represents an orderbook asks and bids details.
WsSpreadOrderTrade trade of an order.
WsSpreadPublicTicker holds spread public ticker data.
WsSpreadPublicTrade holds trades data from sprd-public-trades.
WsSpreadPushData holds push data.
WsStructureBlocTrade represents websocket push data for "struc-block-trades" subscription.
WSSubscriptionInformationList websocket subscription and unsubscription operation inputs.
WsSystemStatusResponse represents websocket push data system status push data.
WSTickerResponse represents websocket ticker response.
WsTradeOrder represents a trade push data response as a result subscription to "trades" channel.
WsWithdrawlInfo represents push notification is triggered when a withdrawal is initiated or the withdrawal status changes.

# Type aliases

LendingOrderResponse represents an order ID response after placing a lending order.