CoinRithm · Schema

AgentLedgerExport

Prediction MarketsCrypto PricesPaper TradingAgentic TradingResearch ServiceLive Market Data

Properties

Name Type Description
apiKeyId integer
exportedAt string
count integer
maxRows integer
run object Present when exporting with a runId filter.
data array
futures array Not emitted by this endpoint (the futures audit export is a separate signed-in surface); always absent.
futuresEvents array Not emitted by this endpoint; always absent.
View JSON Schema on GitHub

JSON Schema

coinrithm-com-agent-ledger-export-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/coinrithm-com/json-schema/coinrithm-com-agent-ledger-export-schema.json",
  "title": "AgentLedgerExport",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/coinrithm-com-ledger-api-openapi.yml#/components/schemas/AgentLedgerExport",
  "type": "object",
  "properties": {
    "apiKeyId": {
      "type": "integer"
    },
    "exportedAt": {
      "type": "string",
      "format": "date-time"
    },
    "count": {
      "type": "integer"
    },
    "maxRows": {
      "type": "integer"
    },
    "run": {
      "anyOf": [
        {
          "$ref": "#/$defs/AgentRunEvidenceManifest"
        },
        {
          "type": "null"
        }
      ],
      "description": "Present when exporting with a runId filter."
    },
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/AgentActionEvent"
      }
    },
    "futures": {
      "type": "array",
      "deprecated": true,
      "description": "Not emitted by this endpoint (the futures audit export is a separate signed-in surface); always absent.",
      "items": {
        "$ref": "#/$defs/AuditFuturesPosition"
      }
    },
    "futuresEvents": {
      "type": "array",
      "deprecated": true,
      "description": "Not emitted by this endpoint; always absent.",
      "items": {
        "$ref": "#/$defs/AuditFuturesEvent"
      }
    }
  },
  "$defs": {
    "AgentActionEvent": {
      "type": "object",
      "description": "Private sanitized ledger row for the calling API key.",
      "properties": {
        "id": {
          "type": "integer"
        },
        "method": {
          "type": "string"
        },
        "endpoint": {
          "type": "string"
        },
        "venue": {
          "type": [
            "string",
            "null"
          ]
        },
        "eventType": {
          "type": "string"
        },
        "statusCode": {
          "type": [
            "integer",
            "null"
          ]
        },
        "ledgerStatus": {
          "type": "string"
        },
        "latencyMs": {
          "type": [
            "integer",
            "null"
          ]
        },
        "idempotencyKey": {
          "type": [
            "string",
            "null"
          ]
        },
        "relatedEntityType": {
          "type": [
            "string",
            "null"
          ]
        },
        "relatedEntityId": {
          "type": [
            "string",
            "null"
          ]
        },
        "requestSummary": {
          "type": [
            "object",
            "null"
          ],
          "additionalProperties": true
        },
        "responseSummary": {
          "type": [
            "object",
            "array",
            "string",
            "number",
            "boolean",
            "null"
          ],
          "items": {}
        },
        "blockReasons": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "runId": {
          "type": [
            "string",
            "null"
          ]
        },
        "decisionId": {
          "type": [
            "string",
            "null"
          ]
        },
        "strategyLabel": {
          "type": [
            "string",
            "null"
          ]
        },
        "confidence": {
          "type": [
            "number",
            "null"
          ]
        },
        "rationaleSummary": {
          "type": [
            "string",
            "null"
          ],
          "description": "Private caller-supplied summary; never exposed publicly."
        },
        "startedAt": {
          "type": "string",
          "format": "date-time"
        },
        "completedAt": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        }
      }
    },
    "AgentExecutionAssumptions": {
      "type": "object",
      "description": "Versioned paper-execution assumptions attached to private run exports.\nThis is methodology metadata, not a fee/slippage charge schedule.\n",
      "properties": {
        "schema": {
          "type": "string"
        },
        "accountModel": {
          "type": "string"
        },
        "dataFreshness": {
          "type": "string"
        },
        "costModel": {
          "type": "object",
          "properties": {
            "spot": {
              "type": "string"
            },
            "futures": {
              "type": "string"
            },
            "predictionMarkets": {
              "type": "string"
            }
          }
        },
        "executionTiming": {
          "type": "object",
          "properties": {
            "spotMarket": {
              "type": "string"
            },
            "spotResting": {
              "type": "string"
            },
            "futures": {
              "type": "string"
            },
            "predictionMarkets": {
              "type": "string"
            }
          }
        },
        "reproducibilityCaveat": {
          "type": "string"
        }
      }
    },
    "AgentLedgerRetentionPolicy": {
      "type": "object",
      "description": "Bounded retention/cap policy for private agent ledger evidence.",
      "properties": {
        "schema": {
          "type": "string"
        },
        "retentionDays": {
          "type": "integer",
          "description": "Rolling private ledger retention window."
        },
        "runListScanLimit": {
          "type": "integer",
          "description": "Max recent ledger rows scanned to build the settings run list."
        },
        "exportMaxRows": {
          "type": "integer",
          "description": "Max rows included in one ledger/run export."
        },
        "pruneBatchMax": {
          "type": "integer",
          "description": "Max rows deleted by one retention prune run."
        },
        "policy": {
          "type": "string"
        }
      }
    },
    "AgentRunCount": {
      "type": "object",
      "properties": {
        "value": {
          "type": "string"
        },
        "count": {
          "type": "integer"
        }
      }
    },
    "AgentRunEvidenceChecklist": {
      "type": "object",
      "description": "Derived private reproducibility checklist for a run export. Computed\nfrom ledger rows at read/export time; no additional run table or raw\nmarket archive is created.\n",
      "properties": {
        "schema": {
          "type": "string"
        },
        "overallStatus": {
          "type": "string",
          "enum": [
            "pass",
            "warn",
            "fail"
          ]
        },
        "items": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "label": {
                "type": "string"
              },
              "status": {
                "type": "string",
                "enum": [
                  "pass",
                  "warn",
                  "fail"
                ]
              },
              "detail": {
                "type": "string"
              }
            }
          }
        }
      }
    },
    "AgentRunEvidenceManifest": {
      "type": "object",
      "description": "Private reproducibility bundle metadata for one agentTrace.runId.",
      "properties": {
        "schema": {
          "type": "string"
        },
        "generatedAt": {
          "type": "string",
          "format": "date-time"
        },
        "source": {
          "type": "string"
        },
        "definition": {
          "type": "string"
        },
        "snapshotModel": {
          "type": "string"
        },
        "retentionPolicy": {
          "$ref": "#/$defs/AgentLedgerRetentionPolicy"
        },
        "executionAssumptions": {
          "$ref": "#/$defs/AgentExecutionAssumptions"
        },
        "outcomeSummary": {
          "anyOf": [
            {
              "$ref": "#/$defs/AgentRunOutcomeSummary"
            },
            {
              "type": "null"
            }
          ]
        },
        "evidenceChecklist": {
          "$ref": "#/$defs/AgentRunEvidenceChecklist"
        },
        "summary": {
          "type": "object",
          "properties": {
            "apiKeyId": {
              "type": "integer"
            },
            "runId": {
              "type": "string"
            },
            "eventCount": {
              "type": "integer"
            },
            "firstEventAt": {
              "type": [
                "string",
                "null"
              ],
              "format": "date-time"
            },
            "lastEventAt": {
              "type": [
                "string",
                "null"
              ],
              "format": "date-time"
            },
            "quoteCount": {
              "type": "integer"
            },
            "writeCount": {
              "type": "integer"
            },
            "rejectionCount": {
              "type": "integer"
            },
            "idempotentReplayCount": {
              "type": "integer"
            },
            "observationCount": {
              "type": "integer"
            },
            "observationCoverageRate": {
              "type": [
                "number",
                "null"
              ]
            },
            "quoteBeforeTradeRate": {
              "type": [
                "number",
                "null"
              ]
            },
            "averageLatencyMs": {
              "type": [
                "number",
                "null"
              ]
            },
            "eventTypes": {
              "type": "array",
              "items": {
                "$ref": "#/$defs/AgentRunCount"
              }
            },
            "venues": {
              "type": "array",
              "items": {
                "$ref": "#/$defs/AgentRunCount"
              }
            },
            "ledgerStatuses": {
              "type": "array",
              "items": {
                "$ref": "#/$defs/AgentRunCount"
              }
            },
            "relatedEntities": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "type": {
                    "type": "string"
                  },
                  "id": {
                    "type": "string"
                  }
                }
              }
            },
            "maxRows": {
              "type": [
                "integer",
                "null"
              ]
            },
            "truncated": {
              "type": "boolean"
            }
          }
        }
      }
    },
    "AgentRunOutcomeSummary": {
      "type": "object",
      "description": "Best-effort run-level outcome/PnL attribution derived at export time\nfrom ledger relatedEntityType/relatedEntityId links. Spot orders may\nalso match through their idempotency keys once a terminal ClosedOrder\nexists. No new data is stored for this summary.\n",
      "properties": {
        "schema": {
          "type": "string"
        },
        "mode": {
          "type": "string"
        },
        "coverage": {
          "type": "string",
          "enum": [
            "none",
            "partial",
            "complete"
          ]
        },
        "relatedEntityCount": {
          "type": "integer"
        },
        "matchedOutcomeCount": {
          "type": "integer"
        },
        "unmatchedRelatedEntityCount": {
          "type": "integer"
        },
        "realizedPnlMusd": {
          "type": "number"
        },
        "byVenue": {
          "type": "object",
          "properties": {
            "spot": {
              "type": "object",
              "properties": {
                "realizedPnlMusd": {
                  "type": "number"
                },
                "matchedOutcomeCount": {
                  "type": "integer"
                }
              }
            },
            "futures": {
              "type": "object",
              "properties": {
                "realizedPnlMusd": {
                  "type": "number"
                },
                "matchedOutcomeCount": {
                  "type": "integer"
                }
              }
            },
            "pm": {
              "type": "object",
              "properties": {
                "realizedPnlMusd": {
                  "type": "number"
                },
                "matchedOutcomeCount": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "caveat": {
          "type": "string"
        }
      }
    },
    "AuditFuturesEvent": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer"
        },
        "positionId": {
          "type": "integer"
        },
        "type": {
          "type": "string"
        },
        "sizeDeltaCoin": {
          "type": "number"
        },
        "markPrice": {
          "type": "number"
        },
        "fillPrice": {
          "type": [
            "number",
            "null"
          ],
          "description": "Executed fill price; markPrice remains the reference mark and slippage is already embedded here."
        },
        "realizedPnlMusd": {
          "type": "number",
          "description": "Realized PnL of this exit, net of its close fee and, since 2026-10-14, of the share of open/add fees charged at this exit (entryFeeAllocatedMusd). History was corrected once."
        },
        "marginDeltaMusd": {
          "type": "number"
        },
        "feeMusd": {
          "type": "number"
        },
        "slippageMusd": {
          "type": "number"
        },
        "entryFeeAllocatedMusd": {
          "type": "number",
          "description": "Open/add fee charged to realizedPnlMusd at this exit (pro rata on a reduce, the remainder on a close or liquidation). Already included in realizedPnlMusd; the wallet paid it at open, so do not subtract it again. 0 on open/add events."
        },
        "executionVersion": {
          "type": [
            "string",
            "null"
          ]
        },
        "idempotencyKey": {
          "type": [
            "string",
            "null"
          ]
        },
        "createdAt": {
          "type": "string",
          "format": "date-time"
        }
      }
    },
    "AuditFuturesPosition": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer"
        },
        "coinSymbol": {
          "type": "string"
        },
        "side": {
          "type": "string",
          "enum": [
            "long",
            "short"
          ]
        },
        "leverage": {
          "type": "number"
        },
        "entryPrice": {
          "type": "number"
        },
        "marginMusd": {
          "type": "number"
        },
        "notionalMusd": {
          "type": "number"
        },
        "sizeCoin": {
          "type": "number"
        },
        "maintenanceMarginRate": {
          "type": "number"
        },
        "liquidationPrice": {
          "type": "number"
        },
        "stopLossPrice": {
          "type": [
            "number",
            "null"
          ]
        },
        "takeProfitPrice": {
          "type": [
            "number",
            "null"
          ]
        },
        "entryPriceAsOf": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "entryFreshnessAgeSeconds": {
          "type": [
            "number",
            "null"
          ]
        },
        "entryFreshnessStatus": {
          "type": [
            "string",
            "null"
          ]
        },
        "status": {
          "type": "string",
          "enum": [
            "open",
            "closed",
            "liquidated"
          ]
        },
        "exitPrice": {
          "type": [
            "number",
            "null"
          ]
        },
        "exitReason": {
          "type": [
            "string",
            "null"
          ]
        },
        "realizedPnlMusd": {
          "type": [
            "number",
            "null"
          ]
        },
        "fillModel": {
          "type": [
            "string",
            "null"
          ]
        },
        "idempotencyKey": {
          "type": [
            "string",
            "null"
          ]
        },
        "openedAt": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "closedAt": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "createdAt": {
          "type": "string",
          "format": "date-time"
        }
      }
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/coinrithm-com-agent-ledger-export"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.