Skip to main content

Module types

Module types 

Source
Expand description

Types used as operation parameters and responses.

Modules§

error
Error types.

Structs§

AccountBalance
AccountBalance
AddPositionMarginRequest
AddPositionMarginRequest
AddPositionMarginResponse
AddPositionMarginResponse
AppUser
AppUser
AppUserAddress
Wallet address
ApplicationBalance
ApplicationBalance
ApplicationMovement
ApplicationMovement
ApplicationOrder
ApplicationOrder
AttachPositionTpSlRequest
AttachPositionTpSlRequest
AttachPositionTpSlResponse
AttachPositionTpSlResponse
BackendAuthRequest
BackendAuthRequest
BackendAuthResponse
BackendAuthResponse
BatchCancelAllResponse
BatchCancelAllResponse
BatchCancelError
BatchCancelError
BatchCancelOrdersRequest
BatchCancelOrdersRequest
BatchCancelOrdersResponse
BatchCancelOrdersResponse
BatchCancelResult
BatchCancelResult
BatchCloseAllRequest
BatchCloseAllRequest
BatchCloseAllResponse
BatchCloseAllResponse
BatchCloseError
BatchCloseError
BatchCloseResult
BatchCloseResult
BatchCreateError
BatchCreateError
BatchCreateOrderItem
BatchCreateOrderItem
BatchCreateOrdersRequest
BatchCreateOrdersRequest
BatchCreateOrdersResponse
BatchCreateOrdersResponse
BatchCreateResult
BatchCreateResult
BatchReplaceError
BatchReplaceError
BatchReplaceOrderItem
BatchReplaceOrderItem
BatchReplaceOrdersRequest
BatchReplaceOrdersRequest
BatchReplaceOrdersResponse
BatchReplaceOrdersResponse
BatchReplaceResult
BatchReplaceResult
CancelConditionalOrderResponse
CancelConditionalOrderResponse
CancelOrderRequest
CancelOrderRequest
CancelOrderResponse
CancelOrderResponse
Candle
Candle
ChallengeRequest
ChallengeRequest
ChallengeRequestAddress
Ethereum wallet address
ChallengeRequestSessionPublicKey
Lowercase hex (64 chars) ed25519 public key generated locally by the SDK. The returned challenge message will embed this key so the wallet’s signature binds it; the same value must be submitted to /api/v1/auth/verify.
ChallengeResponse
ChallengeResponse
ChartDataPoint
ChartDataPoint
ClosePositionRequest
ClosePositionRequest
ClosePositionResponse
ClosePositionResponse
ConditionalOrder
ConditionalOrder
CreateDelegatedSessionRequest
CreateDelegatedSessionRequest
CreateDelegatedSessionResponse
CreateDelegatedSessionResponse
CreateLimitRequest
CreateLimitRequest
CreateLimitRequestDailyLimit
Maximum daily spending limit in token units
CreateLimitRequestMaxAmount
Maximum amount allowed in token units
CreateLimitResponse
CreateLimitResponse
CreateOrderRequest
CreateOrderRequest
CreateOrderResponse
CreateOrderResponse
DelegatedAgent
DelegatedAgent
DelegatedAgentAllowedActionsItem
DelegatedAgentAllowedActionsItem
DelegatedAgentAllowedOrderTypesItem
DelegatedAgentAllowedOrderTypesItem
DelegatedAgentAllowedTimeInForceItem
DelegatedAgentAllowedTimeInForceItem
DelegatedAgentOwner
DelegatedAgentOwner
DeleteLimitResponse
DeleteLimitResponse
ExecutionPriceRange
ExecutionPriceRange
FailedMint
FailedMint
FeeTierScheduleRow
FeeTierScheduleRow
FundingPaymentRecord
FundingPaymentRecord
FundingRecord
FundingRecord
GetAppStatsResponse
GetAppStatsResponse
GetAvailableCollateralResponse
GetAvailableCollateralResponse
GetBalanceByAssetResponse
GetBalanceByAssetResponse
GetBalancesResponse
GetBalancesResponse
GetCandlesResponse
OHLCV candlestick data.
GetConfigResponse
GetConfigResponse
GetConfigResponseAllowedOriginsItem
GetConfigResponseAllowedOriginsItem
GetFundingStateResponse
GetFundingStateResponse
GetIndexPriceResponse
GetIndexPriceResponse
GetLimitsResponse
GetLimitsResponse
GetMarginAccountMovementsResponse
GetMarginAccountMovementsResponse
GetMarginAccountSummaryResponse
GetMarginAccountSummaryResponse
GetMarkPriceResponse
GetMarkPriceResponse
GetMarketMetadataResponse
Market metadata with current price and 24h statistics.
GetMarketStatsResponse
Exchange-wide life-to-date cumulative market statistics across all trading pairs.
GetMovementsResponse
GetMovementsResponse
GetMyFeeTierResponse
GetMyFeeTierResponse
GetOpenInterestResponse
Latest public open interest for a trading pair.
GetOrderResponse
GetOrderResponse
GetOrderbookResponse
Orderbook snapshot with token metadata and sequence number.
GetOrdersStatus
GetOrdersStatus
GetPerpMarketConfigResponse
GetPerpMarketConfigResponse
GetPerpMarketSummaryResponse
GetPerpMarketSummaryResponse
GetPortfolioChartResponse
GetPortfolioChartResponse
GetPortfolioStatsResponse
GetPortfolioStatsResponse
GetPositionResponse
GetPositionResponse
GetPositionRiskResponse
GetPositionRiskResponse
GetProfileResponse
GetProfileResponse
GetProfileResponseAddress
Wallet address
GetScreenerResponse
Paginated screener response sorted by quoteVolume24h desc (nulls last).
GetTradeByIdResponse
A single trade.
GetTradesResponse
Recent trades for a trading pair.
GetTradingPairResponse
Single trading pair details.
GetUserTradesResponse
GetUserTradesResponse
IndexComponent
IndexComponent
InitiateWithdrawalRequest
InitiateWithdrawalRequest
LedgerMovement
LedgerMovement
ListAppBalancesResponse
ListAppBalancesResponse
ListAppMovementsResponse
ListAppMovementsResponse
ListAppOrdersResponse
ListAppOrdersResponse
ListAppUsersResponse
ListAppUsersResponse
ListApplicationOrdersStatus
ListApplicationOrdersStatus
ListApplicationUsersAddress
ListApplicationUsersAddress
ListConditionalOrdersResponse
ListConditionalOrdersResponse
ListDelegatedAgentOwnersResponse
ListDelegatedAgentOwnersResponse
ListDelegatedAgentsResponse
ListDelegatedAgentsResponse
ListFundingHistoryResponse
ListFundingHistoryResponse
ListFundingPaymentsResponse
ListFundingPaymentsResponse
ListMarginAccountsResponse
ListMarginAccountsResponse
ListOrdersResponse
ListOrdersResponse
ListPendingWithdrawalsResponse
ListPendingWithdrawalsResponse
ListPositionHistoryResponse
ListPositionHistoryResponse
ListPositionsResponse
ListPositionsResponse
ListPositionsStatus
ListPositionsStatus
ListSubAccountsResponse
ListSubAccountsResponse
ListTradingPairsResponse
Paginated list of trading pairs.
MarginAccountMovement
MarginAccountMovement
MarginAccountSummary
MarginAccountSummary
MatchResult
MatchResult
MintTokensResponse
MintTokensResponse
MintedToken
MintedToken
OrderbookData
OrderbookData
ParentTpSlLeg
ParentTpSlLeg
PendingWithdrawal
A single pending withdrawal in a list response. A lightweight summary — the executable calldata is not included (it does not exist until the withdrawal is confirmed on-chain; fetch it from GetWithdrawal once it becomes ready).
Position
Position
PositionHistoryEvent
PositionHistoryEvent
PriceChange
PriceChange
PriceLevel
PriceLevel
PublicHealthCheckResponse
PublicHealthCheckResponse
PublicTrade
A public trade event. Serializes to the REST envelope: { data: { … }, eventType, tradingPairId, tradingMode }. The WebSocket surface emits the equivalent envelope with snake_case keys.
ReducePositionMarginRequest
ReducePositionMarginRequest
ReducePositionMarginResponse
ReducePositionMarginResponse
RefreshRequest
RefreshRequest
RefreshResponse
RefreshResponse
ReplaceOrderRequest
ReplaceOrderRequest
ReplaceOrderResponse
ReplaceOrderResponse
RevokeDelegatedAgentResponse
RevokeDelegatedAgentResponse
RevokeRequest
RevokeRequest
RevokeResponse
RevokeResponse
RiskTier
RiskTier
ScreenerItem
Per-pair screener row. Window fields null when insufficient history.
ScreenerSnapshotPoint
One UTC-day bucket in a pair’s 7-day snapshot.
SimulateFeesPrice
SimulateFeesPrice
SimulateFeesQuantity
SimulateFeesQuantity
SimulateFeesResponse
SimulateFeesResponse
SimulateOrderRiskRequest
SimulateOrderRiskRequest
SimulateOrderRiskResponse
SimulateOrderRiskResponse
SimulateParentMarginOrderRiskRequest
SimulateParentMarginOrderRiskRequest
SimulateRiskBucketOrderRiskRequest
SimulateRiskBucketOrderRiskRequest
SubAccount
SubAccount
SubAccountAddress
Sub-account wallet address
SubAccountLimit
SubAccountLimit
SubmitWhitelistRequest
SubmitWhitelistRequest
SubmitWhitelistRequestTelegramUsername
Applicant Telegram username
SubmitWhitelistRequestTwitterUsername
Applicant Twitter/X username
SubmitWhitelistRequestWalletAddress
Applicant wallet address
SubmitWhitelistResponse
SubmitWhitelistResponse
TpSlLeg
TpSlLeg
TradeData
Core fields of a single executed trade, nested under data in the public trade event envelope.
TradingPairData
Trading pair configuration including tokens, fees, and order limits.
TransferCollateralFromMarginAccountRequest
TransferCollateralFromMarginAccountRequest
TransferCollateralFromMarginAccountResponse
TransferCollateralFromMarginAccountResponse
TransferCollateralFromParentMarginAccountRequest
TransferCollateralFromParentMarginAccountRequest
TransferCollateralToMarginAccountRequest
TransferCollateralToMarginAccountRequest
TransferCollateralToMarginAccountResponse
TransferCollateralToMarginAccountResponse
TransferCollateralToParentMarginAccountRequest
TransferCollateralToParentMarginAccountRequest
TransferCollateralToRiskBucketRequest
TransferCollateralToRiskBucketRequest
UpdateLimitRequest
UpdateLimitRequest
UpdateLimitRequestDailyLimit
New maximum daily spending limit in token units
UpdateLimitRequestMaxAmount
New maximum amount allowed in token units
UpdateLimitResponse
UpdateLimitResponse
UpdatedFields
UpdatedFields
UpsertDelegatedAgentRequest
UpsertDelegatedAgentRequest
UpsertDelegatedAgentRequestAllowedActionsItem
UpsertDelegatedAgentRequestAllowedActionsItem
UpsertDelegatedAgentRequestAllowedOrderTypesItem
UpsertDelegatedAgentRequestAllowedOrderTypesItem
UpsertDelegatedAgentRequestAllowedTimeInForceItem
UpsertDelegatedAgentRequestAllowedTimeInForceItem
UserInfo
UserInfo
UserInfoAddress
Wallet address
UserTrade
UserTrade
VerifyRequest
VerifyRequest
VerifyRequestAddress
Ethereum wallet address
VerifyRequestNonce
Challenge nonce
VerifyRequestSessionPublicKey
Lowercase hex (64 chars) ed25519 public key generated locally by the SDK. Subsequent authenticated requests are signed with the matching private key. The wallet’s signature on the challenge message proves the user authorized this specific public key.
VerifyRequestSignature
Wallet signature over the challenge message
VerifyResponse
VerifyResponse
Withdrawal
Withdrawal

Enums§

BatchCreateOrderItemMarginMode
Risk bucket mode for margin orders. Defaults to ISOLATED. Values: ISOLATED, CROSS.
BatchCreateOrderItemPositionSide
Position side for margin orders: LONG, SHORT, or NONE
CreateOrderRequestMarginMode
Risk bucket mode for margin orders. Defaults to ISOLATED. Values: ISOLATED, CROSS.
CreateOrderRequestPositionSide
Position side for margin orders: LONG, SHORT, or NONE
GetOrderbookSnapshotDenomination
GetOrderbookSnapshotDenomination
GetOrderbookSnapshotMagnitude
GetOrderbookSnapshotMagnitude
GetOrderbookSnapshotTradingMode
GetOrderbookSnapshotTradingMode
GetOrdersOrderBy
GetOrdersOrderBy
GetOrdersTradingMode
GetOrdersTradingMode
GetScreenerMarketType
GetScreenerMarketType
GetUserMovementsEntryType
GetUserMovementsEntryType
GetUserMovementsOrderBy
GetUserMovementsOrderBy
GetUserMovementsTransactionType
GetUserMovementsTransactionType
ListApplicationMovementsEntryType
ListApplicationMovementsEntryType
ListApplicationMovementsTransactionType
ListApplicationMovementsTransactionType
ListApplicationOrdersOrderType
ListApplicationOrdersOrderType
ListApplicationOrdersSide
ListApplicationOrdersSide
ListApplicationUsersAccountType
ListApplicationUsersAccountType
ListTradingPairsMarketType
ListTradingPairsMarketType
ParentTpSlLegOrderType
Triggered order type: MARKET or LIMIT
ParentTpSlLegTimeInForce
LIMIT only: GTC or IOC
SimulateFeesOrderType
SimulateFeesOrderType
SimulateFeesSide
SimulateFeesSide