Request body for creating a new trading session.

interface SessionRequest {
    contract_id: TradeAccountId;
    contract_ids: ContractId[];
    expiry: string;
    nonce: string;
    session_id: Identity;
    signature: Secp256k1Signature;
}

Properties

contract_id: TradeAccountId

The trade account contract ID.

contract_ids: ContractId[]

Contract IDs the session should be authorized for.

expiry: string

Expiry timestamp (Unix seconds as string).

nonce: string

Current nonce (as string).

session_id: Identity

The session key identity.

signature: Secp256k1Signature

The owner's signature authorizing the session.