Skip to main content
POST

Authorizations

x-api-key
string
header
required

Headers

x-signature
string

HMAC-SHA256 signature: HMAC-SHA256(secretKey, timestamp + METHOD + path + body). Required for API-key authenticated requests (JWT/OAuth session auth is exempt).

x-timestamp
string

Request timestamp in epoch milliseconds. Required with x-signature for API-key auth. Rejected if drift exceeds 5 minutes.

Body

application/json

OpenAPI: McpWalletToggleModeBodyDto. GraphQL: WalletModeArgs in apps/gql-main/src/wallet/args/walletMode.args.ts.

isVirtualMode
boolean

true = virtual trading mode, false = real wallet mode (omit to use server default toggle behavior)

Response

200 - application/json

Updated mode.

success
boolean
required
Example:

true

data
object
required

Endpoint-specific payload