# Beggar Bot BFX Positions Feed

> Beggar Bot BFX Positions Feed is a paid API for AI agents from beggar-bot-demand.beggarbot.workers.dev, paid per call via x402, $0.02/call, status unknown (last checked 2026-11-23).

Fetches Bitfinex perpetual/margin position data for a given trading pair, interval, and limit via a paid x402 micropayment endpoint

## Facts

- Endpoint: GET https://beggar-bot-demand.beggarbot.workers.dev/v1/bfxpositions?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-23
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/beggar-bot-bfx-positions-feed-4c47097e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_D1fdLom9BmL95v3KnzvW_

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability beggar-bot-bfx-positions-feed-4c47097e
```

Example prompt: Pull the last 48 hourly BFX position data points for BTC-USD from Bitfinex — I want to see how open positions have shifted over the past two days.

## When to prefer this

Use this endpoint when you need Bitfinex perpetual/margin position data for a specific trading pair with configurable time intervals and point counts, and you are operating in an x402-capable agent that can pay $0.02 USDC per call on Base mainnet. Prefer this over generic market data APIs when you specifically need BFX position (not price/OHLC) data with micropayment-based access control.

## Known failure modes

- Payment not received — returns HTTP 402 if the $0.02 USDC x402 micropayment is not completed
- Invalid pair parameter — unknown or malformed trading pair symbol may return an error or empty result
- Invalid interval value — only '1m', '1h', or '1D' are accepted; other values may cause an error
- Limit out of range — non-numeric or extreme limit values may be rejected
- Upstream Bitfinex data unavailable — if Bitfinex API is down, the endpoint may return an error or stale data
- Network parameter mismatch — sending base-sepolia network when mainnet data is expected

## How this service works

Paid: /v1/verify, /v1/risk, /v1/receipt cost $0.01 USDC per call on Base mainnet via x402 (payTo 0x719227f384b66BFEF00093D6d8d32fA9dC2B40e7); utilities analyze Base mainnet (USDC 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913) by default, network=base-sepolia optional; /v1/receipt/verify and discovery files are free. Operator: Beggar Bot.

## Output

Returns a JSON response containing time-series BFX (Bitfinex) position data for the requested trading pair, filtered by interval and limited to the specified number of data points. Typically includes position size, direction, and timestamp fields per record.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "pair": {
       "type": "string",
       "description": "e.g. BTC-USD"
      },
      "limit": {
       "type": "string",
       "description": "points (48)"
      },
      "interval": {
       "type": "string",
       "description": "1m, 1h or 1D"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/beggar-bot-bfx-positions-feed-4c47097e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from beggar-bot-demand.beggarbot.workers.dev](https://www.zero.xyz/host/beggar-bot-demand.beggarbot.workers.dev/llms.txt)
