Binance · Capability

Binance Spot Trading API — Account

Binance Spot Trading API — Account. 4 operations. Lead operation: Account information. Self-contained Naftiko capability covering one Binance business surface.

Run with Naftiko BinanceAccount

What You Can Do

GET
Getaccountinfo — Account information
/v1/api/v3/account
GET
Getpreventedmatches — Query prevented matches
/v1/api/v3/mypreventedmatches
GET
Getmytrades — Account trade list
/v1/api/v3/mytrades
GET
Getorderratelimit — Query current order count usage
/v1/api/v3/ratelimit/order

MCP Tools

account-information

Account information

read-only idempotent
query-prevented-matches

Query prevented matches

read-only idempotent
account-trade-list

Account trade list

read-only idempotent
query-current-order-count-usage

Query current order count usage

read-only idempotent

Capability Spec

spot-trading-account.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Binance Spot Trading API — Account
  description: 'Binance Spot Trading API — Account. 4 operations. Lead operation: Account information. Self-contained Naftiko
    capability covering one Binance business surface.'
  tags:
  - Binance
  - Account
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    BINANCE_API_KEY: BINANCE_API_KEY
capability:
  consumes:
  - type: http
    namespace: spot-trading-account
    baseUri: https://api.binance.com
    description: Binance Spot Trading API — Account business capability. Self-contained, no shared references.
    resources:
    - name: api-v3-account
      path: /api/v3/account
      operations:
      - name: getaccountinfo
        method: GET
        description: Account information
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: omitZeroBalances
          in: query
          type: boolean
          description: When set to true, emits only non-zero balances.
    - name: api-v3-myPreventedMatches
      path: /api/v3/myPreventedMatches
      operations:
      - name: getpreventedmatches
        method: GET
        description: Query prevented matches
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: preventedMatchId
          in: query
          type: integer
          description: Prevented match ID.
        - name: orderId
          in: query
          type: integer
          description: Order ID.
        - name: fromPreventedMatchId
          in: query
          type: integer
          description: Start from this prevented match ID.
        - name: limit
          in: query
          type: integer
          description: Number of results. Default 500, max 1000.
    - name: api-v3-myTrades
      path: /api/v3/myTrades
      operations:
      - name: getmytrades
        method: GET
        description: Account trade list
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: orderId
          in: query
          type: integer
          description: Only return trades for this order ID.
        - name: startTime
          in: query
          type: integer
          description: Start time in milliseconds.
        - name: endTime
          in: query
          type: integer
          description: End time in milliseconds.
        - name: fromId
          in: query
          type: integer
          description: Trade ID to fetch from.
        - name: limit
          in: query
          type: integer
          description: Number of results. Default 500, max 1000.
    - name: api-v3-rateLimit-order
      path: /api/v3/rateLimit/order
      operations:
      - name: getorderratelimit
        method: GET
        description: Query current order count usage
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: apikey
      key: X-MBX-APIKEY
      value: '{{env.BINANCE_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: spot-trading-account-rest
    port: 8080
    description: REST adapter for Binance Spot Trading API — Account. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/api/v3/account
      name: api-v3-account
      description: REST surface for api-v3-account.
      operations:
      - method: GET
        name: getaccountinfo
        description: Account information
        call: spot-trading-account.getaccountinfo
        with:
          omitZeroBalances: rest.omitZeroBalances
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/v3/mypreventedmatches
      name: api-v3-mypreventedmatches
      description: REST surface for api-v3-myPreventedMatches.
      operations:
      - method: GET
        name: getpreventedmatches
        description: Query prevented matches
        call: spot-trading-account.getpreventedmatches
        with:
          preventedMatchId: rest.preventedMatchId
          orderId: rest.orderId
          fromPreventedMatchId: rest.fromPreventedMatchId
          limit: rest.limit
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/v3/mytrades
      name: api-v3-mytrades
      description: REST surface for api-v3-myTrades.
      operations:
      - method: GET
        name: getmytrades
        description: Account trade list
        call: spot-trading-account.getmytrades
        with:
          orderId: rest.orderId
          startTime: rest.startTime
          endTime: rest.endTime
          fromId: rest.fromId
          limit: rest.limit
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/v3/ratelimit/order
      name: api-v3-ratelimit-order
      description: REST surface for api-v3-rateLimit-order.
      operations:
      - method: GET
        name: getorderratelimit
        description: Query current order count usage
        call: spot-trading-account.getorderratelimit
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: spot-trading-account-mcp
    port: 9090
    transport: http
    description: MCP adapter for Binance Spot Trading API — Account. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: account-information
      description: Account information
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: spot-trading-account.getaccountinfo
      with:
        omitZeroBalances: tools.omitZeroBalances
      outputParameters:
      - type: object
        mapping: $.
    - name: query-prevented-matches
      description: Query prevented matches
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: spot-trading-account.getpreventedmatches
      with:
        preventedMatchId: tools.preventedMatchId
        orderId: tools.orderId
        fromPreventedMatchId: tools.fromPreventedMatchId
        limit: tools.limit
      outputParameters:
      - type: object
        mapping: $.
    - name: account-trade-list
      description: Account trade list
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: spot-trading-account.getmytrades
      with:
        orderId: tools.orderId
        startTime: tools.startTime
        endTime: tools.endTime
        fromId: tools.fromId
        limit: tools.limit
      outputParameters:
      - type: object
        mapping: $.
    - name: query-current-order-count-usage
      description: Query current order count usage
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: spot-trading-account.getorderratelimit
      outputParameters:
      - type: object
        mapping: $.