addedInput schema / oneOf
Added value: +[
+ {
+ "properties": {
+ "builder_fee": {
+ "additionalProperties": {},
+ "propertyNames": {
+ "type": "string"
+ },
+ "type": "object"
+ },
+ "client_order_id": {
+ "pattern": "^0x[0-9a-fA-F]{32}$",
+ "type": "string"
+ },
+ "expires_after_seconds": {
+ "maximum": 120,
+ "minimum": 5,
+ "type": "integer"
+ },
+ "limit_price": {
+ "description": "Exact IOC limit price decimal string",
+ "minLength": 1,
+ "type": "string"
+ },
+ "market": {
+ "enum": [
+ "BTC",
+ "ETH",
+ "HYPE"
+ ],
+ "type": "string"
+ },
+ "max_mark_oracle_deviation_bps": {
+ "maximum": 10000,
+ "minimum": 0,
+ "type": "number"
+ },
+ "max_notional_usd": {
+ "maximum": 1000000000,
+ "minimum": 1,
+ "type": "number"
+ },
+ "max_price_impact_bps": {
+ "maximum": 10000,
+ "minimum": 0,
+ "type": "number"
+ },
+ "reduce_only": {
+ "type": "boolean"
+ },
+ "require_full_fill": {
+ "type": "boolean"
+ },
+ "side": {
+ "enum": [
+ "buy",
+ "sell"
+ ],
+ "type": "string"
+ },
+ "size": {
+ "description": "Exact base size decimal string",
+ "minLength": 1,
+ "type": "string"
+ },
+ "venue": {
+ "const": "hyperliquid",
+ "description": "HyperCore perpetual venue",
+ "type": "string"
+ }
+ },
+ "required": [
+ "venue",
+ "market",
+ "side",
+ "size",
+ "limit_price",
+ "reduce_only",
+ "client_order_id",
+ "max_notional_usd",
+ "max_price_impact_bps",
+ "max_mark_oracle_deviation_bps"
+ ],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "account_id": {
+ "anyOf": [
+ {
+ "pattern": "^[1-9][0-9]*$",
+ "type": "string"
+ },
+ {
+ "exclusiveMinimum": 0,
+ "maximum": 9007199254740991,
+ "type": "integer"
+ }
+ ]
+ },
+ "account_owner": {
+ "pattern": "^0x[0-9a-fA-F]{40}$",
+ "type": "string"
+ },
+ "leverage": {
+ "exclusiveMinimum": 0,
+ "maximum": 100,
+ "type": "number"
+ },
+ "limit_price": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "market": {
+ "enum": [
+ "BTC",
+ "ETH",
+ "SOL",
+ "XRP",
+ "DOGE",
+ "PEPE"
+ ],
+ "type": "string"
+ },
+ "max_slippage_bps": {
+ "maximum": 10000,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "order_type": {
+ "enum": [
+ "market",
+ "limit"
+ ],
+ "type": "string"
+ },
+ "quantity": {
+ "description": "Exact base-asset quantity decimal string",
+ "minLength": 1,
+ "type": "string"
+ },
+ "settlement_strategy_id": {
+ "const": 0,
+ "type": "number"
+ },
+ "side": {
+ "description": "buy maps to open_long, sell to open_short",
+ "enum": [
+ "buy",
+ "sell"
+ ],
+ "type": "string"
+ },
+ "valid_for_seconds": {
+ "maximum": 120,
+ "minimum": 5,
+ "type": "integer"
+ },
+ "venue": {
+ "const": "synthetix-perps-v3-base",
+ "type": "string"
+ }
+ },
+ "required": [
+ "venue",
+ "market",
+ "side",
+ "quantity",
+ "leverage",
+ "max_slippage_bps",
+ "account_id",
+ "account_owner"
+ ],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "client_order_id": {
+ "pattern": "^[A-Za-z0-9_-]{1,36}$",
+ "type": "string"
+ },
+ "leverage": {
+ "exclusiveMinimum": 0,
+ "maximum": 100,
+ "type": "number"
+ },
+ "limit_price": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "market": {
+ "enum": [
+ "BTC",
+ "ETH"
+ ],
+ "type": "string"
+ },
+ "max_slippage_bps": {
+ "maximum": 10000,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "order_type": {
+ "enum": [
+ "market",
+ "limit"
+ ],
+ "type": "string"
+ },
+ "quantity": {
+ "description": "Exact base-asset quantity decimal string",
+ "minLength": 1,
+ "type": "string"
+ },
+ "side": {
+ "description": "buy maps to open_long, sell to open_short",
+ "enum": [
+ "buy",
+ "sell"
+ ],
+ "type": "string"
+ },
+ "valid_for_seconds": {
+ "maximum": 120,
+ "minimum": 5,
+ "type": "integer"
+ },
+ "venue": {
+ "const": "aster-perps-bnb-mainnet",
+ "type": "string"
+ }
+ },
+ "required": [
+ "venue",
+ "market",
+ "side",
+ "quantity",
+ "leverage",
+ "max_slippage_bps",
+ "client_order_id"
+ ],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "expires_after_seconds": {
+ "maximum": 300,
+ "minimum": 1,
+ "type": "integer"
+ },
+ "margin_value_usd": {
+ "exclusiveMinimum": 0,
+ "type": "number"
+ },
+ "market": {
+ "enum": [
+ "SOL",
+ "BTC",
+ "ETH"
+ ],
+ "type": "string"
+ },
+ "side": {
+ "description": "buy maps to open_long, sell to open_short",
+ "enum": [
+ "buy",
+ "sell"
+ ],
+ "type": "string"
+ },
+ "size_base": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "size_usd": {
+ "exclusiveMinimum": 0,
+ "type": "number"
+ },
+ "user_index": {
+ "maximum": 65535,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "venue": {
+ "const": "solana_drift",
+ "type": "string"
+ },
+ "wallet": {
+ "description": "Drift order authority / fee payer",
+ "pattern": "^[1-9A-HJ-NP-Za-km-z]{32,44}$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "venue",
+ "market",
+ "side",
+ "size_usd",
+ "margin_value_usd",
+ "wallet"
+ ],
+ "type": "object"
+ }
+]