naftiko: 1.0.0-alpha2 info: label: "Backpack Exchange \u2014 Position" description: "Backpack Exchange API \u2014 Position. 3 operations. Self-contained Naftiko capability covering one Backpack business surface." tags: - Backpack - Exchange - Position 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-position baseUri: https://api.backpack.exchange description: Backpack Exchange Position business capability. ED25519 signed requests. resources: - name: api-v1-position path: /api/v1/position operations: - name: get-positions method: GET description: Get open positions. outputRawFormat: json outputParameters: - name: result type: object value: $. - name: wapi-v1-history-funding path: /wapi/v1/history/funding operations: - name: get-funding-payments method: GET description: Get funding payments. outputRawFormat: json outputParameters: - name: result type: object value: $. - name: wapi-v1-history-position path: /wapi/v1/history/position operations: - name: get-position-history method: GET description: Get position history. 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-position-rest port: 8080 description: "REST adapter for Backpack Exchange \u2014 Position." resources: - path: /api/v1/position name: api-v1-position description: REST surface for api-v1-position. operations: - method: GET name: get-positions description: Get open positions. call: backpack-position.get-positions outputParameters: - type: object mapping: $. - path: /wapi/v1/history/funding name: wapi-v1-history-funding description: REST surface for wapi-v1-history-funding. operations: - method: GET name: get-funding-payments description: Get funding payments. call: backpack-position.get-funding-payments outputParameters: - type: object mapping: $. - path: /wapi/v1/history/position name: wapi-v1-history-position description: REST surface for wapi-v1-history-position. operations: - method: GET name: get-position-history description: Get position history. call: backpack-position.get-position-history outputParameters: - type: object mapping: $. - type: mcp namespace: backpack-position-mcp port: 9090 transport: http description: "MCP adapter for Backpack Exchange \u2014 Position." tools: - name: backpack-get-positions description: Get open positions. hints: readOnly: true destructive: false idempotent: true call: backpack-position.get-positions outputParameters: - type: object mapping: $. - name: backpack-get-funding-payments description: Get funding payments. hints: readOnly: true destructive: false idempotent: true call: backpack-position.get-funding-payments outputParameters: - type: object mapping: $. - name: backpack-get-position-history description: Get position history. hints: readOnly: true destructive: false idempotent: true call: backpack-position.get-position-history outputParameters: - type: object mapping: $.