SPB Git

Repository Public

execution-orders.json 6.8 KB 26 lines json

1{2  "page": { "orders": [3      { "id": "0c8f4c9e-1f7b-4a64-8a26-000000000002", "orderId": "0c8f4c9e-1f7b-4a64-8a26-000000000002", "mode": "live", "venue": "hyperliquid", "network": "mainnet", "accountId": "6e0f8a44-1b7c-4f1e-9d55-0000000000b1", "clientId": "0x0123", "clientOrderId": "ui-order-0002", "venueOrderId": "991", "instrument": "hyperliquid:BTC", "side": "buy", "type": "limit", "size": "0.01", "price": "68500", "triggerPrice": null, "reduceOnly": false, "tif": "gtc", "status": "PARTIALLY_FILLED", "final": false, "reasonCode": "VENUE_FILL", "reason": null, "rejectCode": null, "engineStatus": "open", "filled": "0.004", "avgFillPrice": "68499.5", "acknowledged": true, "cancelRequested": false, "origin": "owner_ui", "principal": { "kind": "owner", "id": "owner" }, "mandateId": null, "engine": "hyperliquid", "engineRef": "x", "hash": "ab", "notionalUsd": "685", "projectionError": null, "version": 4, "createdAt": 1793999000000, "updatedAt": 1793999100000 },4      { "id": "agent:7", "mode": "paper", "venue": "kyberswap", "network": "base", "accountId": null, "instrument": null, "side": null, "type": "market", "status": "UNKNOWN", "engineStatus": "broadcast", "final": false, "createdAt": 1793998000000, "updatedAt": 1793998000001 },5      { "id": "0c8f4c9e-1f7b-4a64-8a26-000000000003", "mode": "live", "venue": "gmx", "network": "arbitrum", "accountId": null, "instrument": "gmx:BTC/USD [BTC-USDC]", "side": "sell", "type": "market", "status": "SETTLING_ON_CHAIN", "engineStatus": null, "final": false, "createdAt": 1793997000000, "updatedAt": 1793997000001 }6    ], "nextCursor": "MTc5Mzk5NzAwMDAwMHwwYzhm", "ts": 1794000000000 },7  "detail": { "order": { "id": "0c8f4c9e-1f7b-4a64-8a26-000000000004", "mode": "paper", "venue": "hyperliquid", "network": "paper", "accountId": "6e0f8a44-1b7c-4f1e-9d55-0000000000a2", "instrument": "hyperliquid:ETH", "side": "sell", "type": "market", "size": "1.5", "price": null, "triggerPrice": null, "reduceOnly": true, "tif": "ioc", "status": "FILLED", "final": true, "reasonCode": "VENUE_FILLED", "reason": null, "rejectCode": null, "engineStatus": "filled", "filled": "1.5", "avgFillPrice": "3301.25", "createdAt": 1793999000000, "updatedAt": 1793999000900, "canonical": { "v": 1 } },8    "fills": [{ "id": "f-1", "instrument": "hyperliquid:ETH", "side": "sell", "price": "3301.25", "size": "1.5", "fee": "1.98", "feeAsset": "USDC", "closedPnl": "-12.4", "liquidation": false, "ts": 1793999000800 }],9    "history": [{ "seq": 1, "from": "CREATED", "to": "VALIDATED", "event": "validated", "reason": "VALIDATION_PASSED", "detail": null, "at": 1793999000000 }, { "seq": 2, "from": "VALIDATED", "to": "APPROVED", "event": "approved", "reason": "APPROVED_BY_OWNER", "detail": "paper: nothing is signed", "at": 1793999000100 },10      { "seq": 3, "from": "APPROVED", "to": "SUBMITTING", "event": "submit_started", "reason": "SUBMIT_STARTED", "detail": null, "at": 1793999000200 }, { "seq": 4, "from": "SUBMITTING", "to": "FILLED", "event": "fill", "reason": "VENUE_FILLED", "detail": null, "at": 1793999000800 }] },11  "positions": { "positions": [{ "id": "live:hyperliquid:6e0f8a44-1b7c-4f1e-9d55-0000000000b1:hyperliquid:BTC", "mode": "live", "venue": "hyperliquid", "accountId": "6e0f8a44-1b7c-4f1e-9d55-0000000000b1", "instrument": "hyperliquid:BTC", "side": "long", "size": "0.004", "entryPrice": "68499.5", "markPrice": "68620", "unrealizedPnl": "0.482", "source": "venue" }],12    "errors": [{ "source": "gmx", "message": "rpc timeout" }], "ts": 1794000000000 },13  "previewRest": { "resolved": { "size": "0.0100", "worstPrice": "68500", "notionalUsd": "685" }, "wouldExecute": false,14    "refusals": [{ "stage": "lock", "code": "execution_disabled", "message": "SPW_TRADING_API_EXECUTION is not \"on\"" }, { "stage": "risk", "code": "risk_denied", "message": "order_notional: order notional 685 is above the limit 500" }],15    "approval": { "required": true, "by": "owner_passkey", "note": "the order waits AWAITING_APPROVAL until the owner approves it with the passkey in the app" },16    "risk": { "decision": "deny", "reducing": false, "checks": [{ "id": "order_notional", "ok": false, "observed": "685", "limit": "500", "detail": "order notional 685 is above the limit 500", "exempt": false }, { "id": "gross_exposure", "ok": false, "observed": null, "limit": null, "detail": "exempt", "exempt": true }, { "id": "kill_switch", "ok": true, "observed": "off", "limit": null, "detail": "off", "exempt": false }], "derived": { "size": "0.01", "notional": "685", "referencePrice": "68500" } },17    "mandate": null, "engine": { "name": "hyperliquid", "risk": { "ok": true }, "estimate": { "feeUsd": "0.3" } },18    "account": { "id": "6e0f8a44-1b7c-4f1e-9d55-0000000000b1", "venue": "hyperliquid", "network": "mainnet", "equity": "1200", "freeCollateral": "900", "withheld": false }, "ts": 1794000000000 },19  "placed": { "order": { "id": "0c8f4c9e-1f7b-4a64-8a26-000000000005", "mode": "live", "venue": "hyperliquid", "network": "mainnet", "accountId": "6e0f8a44-1b7c-4f1e-9d55-0000000000b1", "instrument": "hyperliquid:BTC", "side": "buy", "type": "limit", "size": "0.01", "price": "68500", "reduceOnly": false, "tif": "gtc", "status": "AWAITING_APPROVAL", "engineStatus": "pending_approval", "final": false, "createdAt": 1794000000000, "updatedAt": 1794000000000 },20    "idempotent": false, "approval": { "by": "owner_passkey", "engine": "hyperliquid", "accountId": "6e0f8a44-1b7c-4f1e-9d55-0000000000b1", "clientId": "0x0123", "hash": "cd", "expiresAt": 1794000120000, "approve": { "method": "POST", "path": "/api/v1/derivatives/live/accounts/6e0f8a44-1b7c-4f1e-9d55-0000000000b1/orders/0x0123/approve" } } },21  "cancelled": { "order": { "id": "0c8f4c9e-1f7b-4a64-8a26-000000000005", "mode": "live", "venue": "hyperliquid", "network": "mainnet", "accountId": null, "instrument": "hyperliquid:BTC", "side": "buy", "type": "limit", "status": "CANCELLED", "engineStatus": null, "final": true, "reasonCode": "WITHDRAWN_BEFORE_APPROVAL", "createdAt": 1794000000000, "updatedAt": 1794000001000 }, "sent": false, "changed": true, "approval": null },22  "commandControl": { "kind": "control", "command": "CANCEL_ALL", "mode": "paper", "dryRun": true, "executed": false, "control": { "type": "cancel_all" }, "orders": ["0c8f4c9e-1f7b-4a64-8a26-000000000002"] },23  "risk": { "killSwitch": { "signerReachable": true, "signerHalted": false, "note": "the signer halt stops signing" }, "signerPolicy": { "version": 4 }, "capabilityLocks": [{ "id": "deriv_live_mainnet", "on": false, "why": "off" }], "accounts": [{ "mode": "live", "venue": "hyperliquid", "accountId": "6e0f8a44-1b7c-4f1e-9d55-0000000000b1", "policy": null, "halted": null }], "errors": [], "ts": 1794000000000,24    "engine": { "killSwitch": { "on": false, "at": null, "by": null, "reason": null }, "readOnly": { "on": true, "at": 1793999940000, "by": { "kind": "system", "id": "supervisor" }, "reason": "maintenance" }, "note": "the global kill switch blocks every new risk" } }25}26
Files main
Menu

Theme