Response and Trade Execution
Example Response
{
"id": "64b40d8f62cf0a0012345678",
"owner": "0xABC123... (user wallet address)",
"exchange": "Base",
"uid": "0xdef456... (txn hash or exchange order ID)",
"type": "rule",
"ruleId": "60d5adf568a3e60012345678",
"status": "filled",
"base": "ETH",
"quote": "USDC",
"symbol": "ETHUSDC",
"orderSide": "buy",
"orderType": "market",
"orderQuantity": "0.0275",
"orderDetails": { /* ... */ },
"tradeDetails": { /* ... */ },
"txHash": "0xdef456...",
"fills": [
{
"price": "1820.50",
"quantity": "0.0275",
"commission": "0.0000825",
"asset": "ETH",
"coinruleFee": { "tokenAmount": "0.00001", "tokenAddress": "0xCoinruleFeeToken..." },
"aggregatorFee": { "tokenAmount": "0.00003", "tokenAddress": "0xAggregatorFeeToken..." }
}
],
"totalBought": { "asset": "ETH", "amount": "0.0275" },
"totalSold": { "asset": "USDC", "amount": "50" },
"totalExfee": [
{ "asset": "ETH", "amount": "0.0000825" }
],
"runtimeDataHistory": [
{
"symbol": "ETH",
"indicator": "price",
"value": "1820.50",
"params": {
"conditionIndex": 0,
"operation": "above",
"timestamp": "2025-05-16T11:08:00Z"
}
}
],
"speedStats": {
"threadStartTime": "2025-05-16T11:07:59.500Z",
"conditions": [
{ "conditionIndex": 0, "evaluationTime": 12.5 }
]
},
"priceValues": [
{ "asset": "ETH", "amount": "1820.50" },
{ "asset": "USDC", "amount": "50" }
],
"tradeValues": [
{ "asset": "USD", "amount": "50" }
],
"realizedProfit": []
}Last updated