naftiko: 1.0.0-alpha2 info: label: "Backpack Exchange \u2014 Account" description: "Backpack Exchange API \u2014 Account. 5 operations. Self-contained Naftiko capability covering one Backpack business surface." tags: - Backpack - Exchange - Account created: '2026-05-24' modified: '2026-05-24' binds: - namespace: env keys: BACKPACK_API_KEY: BACKPACK_API_KEY BACKPACK_API_SECRET: BACKPACK_API_SECRET capability: consumes: - type: http namespace: backpack-account baseUri: https://api.backpack.exchange description: Backpack Exchange Account business capability. ED25519 signed requests. resources: - name: api-v1-account path: /api/v1/account operations: - name: get-account method: GET description: Get account. outputRawFormat: json outputParameters: - name: result type: object value: $. - name: update-account-settings method: PATCH description: Update account. outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: api-v1-account-limits-borrow path: /api/v1/account/limits/borrow operations: - name: get-max-borrow-quantity method: GET description: Get max borrow quantity. outputRawFormat: json outputParameters: - name: result type: object value: $. - name: api-v1-account-limits-order path: /api/v1/account/limits/order operations: - name: get-max-order-quantity method: GET description: Get max order quantity. outputRawFormat: json outputParameters: - name: result type: object value: $. - name: api-v1-account-limits-withdrawal path: /api/v1/account/limits/withdrawal operations: - name: get-max-withdrawal-quantity method: GET description: Get max withdrawal quantity. outputRawFormat: json outputParameters: - name: result type: object value: $. authentication: type: apikey key: X-API-Key value: '{{env.BACKPACK_API_KEY}}' placement: header exposes: - type: rest namespace: backpack-account-rest port: 8080 description: "REST adapter for Backpack Exchange \u2014 Account." resources: - path: /api/v1/account name: api-v1-account description: REST surface for api-v1-account. operations: - method: GET name: get-account description: Get account. call: backpack-account.get-account outputParameters: - type: object mapping: $. - method: PATCH name: update-account-settings description: Update account. call: backpack-account.update-account-settings with: body: rest.body outputParameters: - type: object mapping: $. - path: /api/v1/account/limits/borrow name: api-v1-account-limits-borrow description: REST surface for api-v1-account-limits-borrow. operations: - method: GET name: get-max-borrow-quantity description: Get max borrow quantity. call: backpack-account.get-max-borrow-quantity outputParameters: - type: object mapping: $. - path: /api/v1/account/limits/order name: api-v1-account-limits-order description: REST surface for api-v1-account-limits-order. operations: - method: GET name: get-max-order-quantity description: Get max order quantity. call: backpack-account.get-max-order-quantity outputParameters: - type: object mapping: $. - path: /api/v1/account/limits/withdrawal name: api-v1-account-limits-withdrawal description: REST surface for api-v1-account-limits-withdrawal. operations: - method: GET name: get-max-withdrawal-quantity description: Get max withdrawal quantity. call: backpack-account.get-max-withdrawal-quantity outputParameters: - type: object mapping: $. - type: mcp namespace: backpack-account-mcp port: 9090 transport: http description: "MCP adapter for Backpack Exchange \u2014 Account." tools: - name: backpack-get-account description: Get account. hints: readOnly: true destructive: false idempotent: true call: backpack-account.get-account outputParameters: - type: object mapping: $. - name: backpack-update-account-settings description: Update account. hints: readOnly: false destructive: false idempotent: false call: backpack-account.update-account-settings with: body: tools.body outputParameters: - type: object mapping: $. - name: backpack-get-max-borrow-quantity description: Get max borrow quantity. hints: readOnly: true destructive: false idempotent: true call: backpack-account.get-max-borrow-quantity outputParameters: - type: object mapping: $. - name: backpack-get-max-order-quantity description: Get max order quantity. hints: readOnly: true destructive: false idempotent: true call: backpack-account.get-max-order-quantity outputParameters: - type: object mapping: $. - name: backpack-get-max-withdrawal-quantity description: Get max withdrawal quantity. hints: readOnly: true destructive: false idempotent: true call: backpack-account.get-max-withdrawal-quantity outputParameters: - type: object mapping: $.