A group of actions targeting a specific market.

Used with O2Client.batchActions. The market field accepts a symbol pair string (e.g., "fFUEL/fUSDC") which is resolved internally by the SDK.

const groups: MarketActionGroup[] = [
{
market: "fFUEL/fUSDC",
actions: [
settleBalanceAction(),
createOrderAction("buy", "0.02", "100"),
createOrderAction("sell", "0.05", "50", "PostOnly"),
],
},
];
await client.batchActions(groups, true);
interface MarketActionGroup {
    actions: Action[];
    market: string;
}

Properties

Properties

actions: Action[]

Actions to execute on this market (max 5 per group).

market: string

Market symbol pair (e.g., "fFUEL/fUSDC") or hex market ID.