Hive Civilization Tradeguard API

The Tradeguard API from Hive Civilization — 10 operation(s) for tradeguard.

Operations 11

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /v1/tradeguard/mcp Describe the TradeGuard MCP server · Tradeguard Mcp Meta #
Ask an LLM
“Does TradeGuard expose an MCP server, and what does it describe?”
“Where is the metadata for the TradeGuard MCP endpoint?”
Tell an agent
Show me the TradeGuard MCP server metadata.
Describe the TradeGuard MCP endpoint.
POST /v1/tradeguard/mcp Call the TradeGuard MCP server · Tradeguard Mcp #
Ask an LLM
“Can I send MCP JSON-RPC requests to TradeGuard from my agent?”
“Where do MCP tool calls for TradeGuard get posted?”
Tell an agent
Send this MCP request to TradeGuard.
Call a TradeGuard tool over MCP.
GET /v1/tradeguard/health Check TradeGuard health · Health #
Ask an LLM
“Is the TradeGuard trade attestation service healthy?”
“Can I check whether TradeGuard is up before attesting orders?”
Tell an agent
Check TradeGuard health.
Tell me if TradeGuard is up.
GET /v1/tradeguard/pricing Get TradeGuard pricing · Pricing #
Ask an LLM
“What does TradeGuard charge to attest a trade?”
“Which pricing tiers does TradeGuard offer?”
Tell an agent
Show me TradeGuard pricing.
Get the cost of trade attestations.
POST /v1/tradeguard/attest Attest an order event for audit · Attest Trade #
Ask an LLM
“How do I create a signed attestation for an algorithmic order event?”
“Can an attestation record symbol, side, quantity and price for a trade?”
Tell an agent
Attest order event {order_event_hash} for trader {trader_did} at firm {firm_did}, algo {algo_id}, type {event_type} on {venue}.
Record a {side} of {quantity} {symbol} from algo {algo_id} as an attestation.
GET /v1/tradeguard/verify/{attestation_id} Verify a trade attestation · Verify Attestation #
Ask an LLM
“Can I confirm a TradeGuard attestation is valid given its ID?”
“What does verifying a trade attestation return?”
Tell an agent
Verify attestation {attestation_id}.
Check that trade attestation {attestation_id} is authentic.
GET /v1/tradeguard/by-event-hash/{order_event_hash} Find an attestation by order event hash · By Event Hash #
Ask an LLM
“Which attestation covers a particular order event hash?”
“Can I look up a trade attestation from the order event's hash?”
Tell an agent
Find the attestation for order event hash {order_event_hash}.
Look up event hash {order_event_hash} in TradeGuard.
GET /v1/tradeguard/by-trader/{trader_did} List attestations for a trader · By Trader #
Ask an LLM
“What trades has a given trader had attested?”
“Can I page through one trader's attestations?”
Tell an agent
List attestations for trader {trader_did}.
Show {limit} attestations for trader {trader_did} starting at {offset}.
GET /v1/tradeguard/by-firm/{firm_did} List attestations for a firm · By Firm #
Ask an LLM
“Which attestations has a trading firm recorded across all its traders?”
“Can I paginate a firm's trade attestations?”
Tell an agent
List attestations for firm {firm_did}.
Show the next {limit} attestations for firm {firm_did} from offset {offset}.
GET /v1/tradeguard/by-algo/{firm_did}/{algo_id} List attestations for one trading algorithm · By Algo #
Ask an LLM
“What orders has a specific algorithm at a firm had attested?”
“Can I audit a single trading algo's attestation history?”
Tell an agent
List attestations for algo {algo_id} at firm {firm_did}.
Show {limit} attestations for firm {firm_did}'s algorithm {algo_id}.
GET /v1/tradeguard/leaderboard View the TradeGuard leaderboard · Leaderboard #
Ask an LLM
“Who is attesting the most trades on TradeGuard lately?”
“Can I see the leaderboard over a custom number of days?”
Tell an agent
Show the TradeGuard leaderboard.
Show the top {limit} on the leaderboard for the last {days} days.

Documentation

Specifications

Other Resources

Work with this as data

Every API 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 apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • 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 API
curl "https://apis.io/api/v1/apis/thehiveryiq-com:thehiveryiq-com-tradeguard-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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. See our Privacy Policy and Terms.

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

OpenAPI Specification

thehiveryiq-com-tradeguard-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: HiveMorph v0.1 Tradeguard API
  description: 'Polymorphic agent runtime — single shape (Merchant), single supermodel (W2 MERCHANT). Three gates: NEED + YIELD + CLEAN-MONEY.'
  version: 0.1.0
tags:
- name: Tradeguard
paths:
  /v1/tradeguard/mcp:
    get:
      summary: Tradeguard Mcp Meta
      operationId: tradeguard_mcp_meta_v1_tradeguard_mcp_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
      tags:
      - Tradeguard
    post:
      summary: Tradeguard Mcp
      operationId: tradeguard_mcp_v1_tradeguard_mcp_post
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
      tags:
      - Tradeguard
  /v1/tradeguard/health:
    get:
      tags:
      - Tradeguard
      summary: Health
      operationId: health_v1_tradeguard_health_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                additionalProperties: true
                type: object
                title: Response Health V1 Tradeguard Health Get
  /v1/tradeguard/pricing:
    get:
      tags:
      - Tradeguard
      summary: Pricing
      operationId: pricing_v1_tradeguard_pricing_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                additionalProperties: true
                type: object
                title: Response Pricing V1 Tradeguard Pricing Get
  /v1/tradeguard/attest:
    post:
      tags:
      - Tradeguard
      summary: Attest Trade
      operationId: attest_trade_v1_tradeguard_attest_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TradeAttestRequest'
        required: true
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TradeAttestResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/tradeguard/verify/{attestation_id}:
    get:
      tags:
      - Tradeguard
      summary: Verify Attestation
      operationId: verify_attestation_v1_tradeguard_verify__attestation_id__get
      parameters:
      - name: attestation_id
        in: path
        required: true
        schema:
          type: string
          title: Attestation Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/hivemorph__hive_tradeguard__models__VerifyResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/tradeguard/by-event-hash/{order_event_hash}:
    get:
      tags:
      - Tradeguard
      summary: By Event Hash
      operationId: by_event_hash_v1_tradeguard_by_event_hash__order_event_hash__get
      parameters:
      - name: order_event_hash
        in: path
        required: true
        schema:
          type: string
          title: Order Event Hash
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: Response By Event Hash V1 Tradeguard By Event Hash  Order Event Hash  Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/tradeguard/by-trader/{trader_did}:
    get:
      tags:
      - Tradeguard
      summary: By Trader
      operationId: by_trader_v1_tradeguard_by_trader__trader_did__get
      parameters:
      - name: trader_did
        in: path
        required: true
        schema:
          type: string
          title: Trader Did
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          maximum: 500
          minimum: 1
          default: 50
          title: Limit
      - name: offset
        in: query
        required: false
        schema:
          type: integer
          minimum: 0
          default: 0
          title: Offset
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: Response By Trader V1 Tradeguard By Trader  Trader Did  Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/tradeguard/by-firm/{firm_did}:
    get:
      tags:
      - Tradeguard
      summary: By Firm
      operationId: by_firm_v1_tradeguard_by_firm__firm_did__get
      parameters:
      - name: firm_did
        in: path
        required: true
        schema:
          type: string
          title: Firm Did
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          maximum: 500
          minimum: 1
          default: 100
          title: Limit
      - name: offset
        in: query
        required: false
        schema:
          type: integer
          minimum: 0
          default: 0
          title: Offset
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: Response By Firm V1 Tradeguard By Firm  Firm Did  Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/tradeguard/by-algo/{firm_did}/{algo_id}:
    get:
      tags:
      - Tradeguard
      summary: By Algo
      operationId: by_algo_v1_tradeguard_by_algo__firm_did___algo_id__get
      parameters:
      - name: firm_did
        in: path
        required: true
        schema:
          type: string
          title: Firm Did
      - name: algo_id
        in: path
        required: true
        schema:
          type: string
          title: Algo Id
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          maximum: 500
          minimum: 1
          default: 100
          title: Limit
      - name: offset
        in: query
        required: false
        schema:
          type: integer
          minimum: 0
          default: 0
          title: Offset
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: Response By Algo V1 Tradeguard By Algo  Firm Did   Algo Id  Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/tradeguard/leaderboard:
    get:
      tags:
      - Tradeguard
      summary: Leaderboard
      operationId: leaderboard_v1_tradeguard_leaderboard_get
      parameters:
      - name: days
        in: query
        required: false
        schema:
          type: integer
          maximum: 365
          minimum: 1
          default: 30
          title: Days
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          maximum: 100
          minimum: 1
          default: 25
          title: Limit
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: Response Leaderboard V1 Tradeguard Leaderboard Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    TradeAttestResponse:
      properties:
        attestation_id:
          type: string
          title: Attestation Id
        trader_did:
          type: string
          title: Trader Did
        firm_did:
          type: string
          title: Firm Did
        algo_id:
          type: string
          title: Algo Id
        order_event_hash:
          type: string
          title: Order Event Hash
        event_type:
          type: string
          title: Event Type
        venue:
          type: string
          title: Venue
        timestamp_iso:
          type: string
          title: Timestamp Iso
        price_usd:
          type: number
          title: Price Usd
        receipt_envelope:
          additionalProperties: true
          type: object
          title: Receipt Envelope
      type: object
      required:
      - attestation_id
      - trader_did
      - firm_did
      - algo_id
      - order_event_hash
      - event_type
      - venue
      - timestamp_iso
      - price_usd
      - receipt_envelope
      title: TradeAttestResponse
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    hivemorph__hive_tradeguard__models__VerifyResponse:
      properties:
        attestation_id:
          type: string
          title: Attestation Id
        trader_did:
          type: string
          title: Trader Did
        firm_did:
          type: string
          title: Firm Did
        algo_id:
          type: string
          title: Algo Id
        order_event_hash:
          type: string
          title: Order Event Hash
        event_type:
          type: string
          title: Event Type
        venue:
          type: string
          title: Venue
        timestamp_iso:
          type: string
          title: Timestamp Iso
        receipt_envelope:
          additionalProperties: true
          type: object
          title: Receipt Envelope
        verification:
          additionalProperties: true
          type: object
          title: Verification
      type: object
      required:
      - attestation_id
      - trader_did
      - firm_did
      - algo_id
      - order_event_hash
      - event_type
      - venue
      - timestamp_iso
      - receipt_envelope
      - verification
      title: VerifyResponse
    TradeAttestRequest:
      properties:
        trader_did:
          type: string
          minLength: 10
          title: Trader Did
          description: Trader DID in did:hive format.
        firm_did:
          type: string
          minLength: 10
          title: Firm Did
          description: Firm DID in did:hive format (Citadel, Virtu, etc.)
        algo_id:
          type: string
          maxLength: 128
          minLength: 1
          title: Algo Id
          description: Firm-controlled algo identifier.
        order_event_hash:
          type: string
          maxLength: 64
          minLength: 64
          pattern: ^[0-9a-fA-F]{64}$
          title: Order Event Hash
          description: SHA-256 hex digest of the FINRA CAT order/trade event payload.
        event_type:
          type: string
          enum:
          - order_new
          - order_modify
          - order_cancel
          - order_route
          - order_route_modify
          - order_route_cancel
          - trade_execution
          - trade_break
          - trade_correction
          - algo_decision
          title: Event Type
          description: FINRA CAT event type.
        venue:
          type: string
          enum:
          - NYSE
          - NASDAQ
          - ARCA
          - BATS
          - IEX
          - EDGX
          - EDGA
          - BYX
          - BX
          - PSX
          - MEMX
          - MIAX
          - OTHER
          title: Venue
          description: Reporting venue (CAT reportable).
        symbol:
          anyOf:
          - type: string
            maxLength: 16
          - type: 'null'
          title: Symbol
          description: Ticker symbol.
        side:
          anyOf:
          - type: string
            enum:
            - buy
            - sell
            - sell_short
          - type: 'null'
          title: Side
        quantity:
          anyOf:
          - type: integer
            minimum: 1.0
          - type: 'null'
          title: Quantity
          description: Order/trade quantity (shares).
        price_cents:
          anyOf:
          - type: integer
            minimum: 0.0
          - type: 'null'
          title: Price Cents
          description: Order/trade price in USD cents.
        parent_order_id:
          anyOf:
          - type: string
            maxLength: 128
          - type: 'null'
          title: Parent Order Id
          description: Parent CAT order id.
        metadata:
          anyOf:
          - additionalProperties: true
            type: object
          - type: 'null'
          title: Metadata
          description: Free-form metadata dict.
      type: object
      required:
      - trader_did
      - firm_did
      - algo_id
      - order_event_hash
      - event_type
      - venue
      title: TradeAttestRequest
x-provenance:
  method: harvested
  publisher: Hive Civilization
  source: https://receipts.thehiveryiq.com/openapi.json
  note: split by refine-openapis from the provider's own published document, verified by fetch (openapi/_original/*.fetch.json);
    stamped by stamp-openapi-provenance.py (roadmap#793)