Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Fee Collector

Public fee collector sweep outcome tracking

Get fee collector sweep by run id

get

Weight: 1

Path parameters
runIdstring · uuidRequired
Responses
200

Sweep detail

application/json

Fee collector sweep run with tracked actions

get/api/v1/feeCollector/sweeps/{runId}
GET /api/v1/feeCollector/sweeps/{runId} HTTP/1.1
Host: api.lambdaplex.io
Accept: */*
{
  "run": {
    "runId": "123e4567-e89b-12d3-a456-426614174000",
    "status": "COMPLETED",
    "feeCollectorAccount": "0.0.4321",
    "feeCollectorAccountId": 4321,
    "targetToken": {
      "tokenId": 2955465931,
      "entityId": "0.0.2955465931",
      "symbol": "PACK",
      "name": "PACK",
      "decimals": 8
    },
    "usdToken": {
      "tokenId": 2955465931,
      "entityId": "0.0.2955465931",
      "symbol": "PACK",
      "name": "PACK",
      "decimals": 8
    },
    "startedAt": "2026-01-01T00:00:00.000Z",
    "finishedAt": "2026-01-01T00:00:00.000Z",
    "skipReason": "OPEN_ORDERS_PRESENT",
    "failureClass": "text",
    "failureMessage": "text",
    "sellActionsPlanned": 1,
    "sellActionsSubmitted": 1,
    "buyActionsSubmitted": 1,
    "terminalActions": 1,
    "failedActions": 1,
    "timedOutActions": 1
  },
  "actions": [
    {
      "actionIndex": 0,
      "kind": "SELL_NON_TARGET",
      "status": "TERMINAL",
      "feeCollectorAccount": "0.0.4321",
      "symbol": "PACK-USDC",
      "symbolId": 123,
      "baseToken": {
        "tokenId": 2955465931,
        "entityId": "0.0.2955465931",
        "symbol": "PACK",
        "name": "PACK",
        "decimals": 8
      },
      "quoteToken": {
        "tokenId": 2955465931,
        "entityId": "0.0.2955465931",
        "symbol": "PACK",
        "name": "PACK",
        "decimals": 8
      },
      "side": "SELL",
      "orderId": "123e4567-e89b-12d3-a456-426614174000",
      "requestedQuantity": 1,
      "requestedQuoteBudget": 1,
      "orderStatus": "FILLED",
      "filled": 1,
      "exchangedValue": 1,
      "failureCode": "NO_USDC_MARKET",
      "failureMessage": "text",
      "failureTxId": "text",
      "failureEventId": 1,
      "submittedAt": "2026-01-01T00:00:00.000Z",
      "terminalAt": "2026-01-01T00:00:00.000Z",
      "fills": [
        {
          "id": 12345,
          "cursorId": 93812,
          "txId": "0.0.1234-1718377300-000000001",
          "fillTime": "2026-01-01T00:00:00.000Z",
          "bidOrderId": "123e4567-e89b-12d3-a456-426614174000",
          "askOrderId": "123e4567-e89b-12d3-a456-426614174000",
          "symbolId": 123,
          "price": 1,
          "volume": 1,
          "quoteVolume": 1,
          "usdVolume": 1,
          "buyerFee": 1,
          "sellerFee": 1,
          "makerIsBid": true
        }
      ]
    }
  ]
}

Get latest fee collector sweep

get

Weight: 1

Responses
200

Latest sweep detail

application/json

Fee collector sweep run with tracked actions

get/api/v1/feeCollector/sweeps/latest
GET /api/v1/feeCollector/sweeps/latest HTTP/1.1
Host: api.lambdaplex.io
Accept: */*
{
  "run": {
    "runId": "123e4567-e89b-12d3-a456-426614174000",
    "status": "COMPLETED",
    "feeCollectorAccount": "0.0.4321",
    "feeCollectorAccountId": 4321,
    "targetToken": {
      "tokenId": 2955465931,
      "entityId": "0.0.2955465931",
      "symbol": "PACK",
      "name": "PACK",
      "decimals": 8
    },
    "usdToken": {
      "tokenId": 2955465931,
      "entityId": "0.0.2955465931",
      "symbol": "PACK",
      "name": "PACK",
      "decimals": 8
    },
    "startedAt": "2026-01-01T00:00:00.000Z",
    "finishedAt": "2026-01-01T00:00:00.000Z",
    "skipReason": "OPEN_ORDERS_PRESENT",
    "failureClass": "text",
    "failureMessage": "text",
    "sellActionsPlanned": 1,
    "sellActionsSubmitted": 1,
    "buyActionsSubmitted": 1,
    "terminalActions": 1,
    "failedActions": 1,
    "timedOutActions": 1
  },
  "actions": [
    {
      "actionIndex": 0,
      "kind": "SELL_NON_TARGET",
      "status": "TERMINAL",
      "feeCollectorAccount": "0.0.4321",
      "symbol": "PACK-USDC",
      "symbolId": 123,
      "baseToken": {
        "tokenId": 2955465931,
        "entityId": "0.0.2955465931",
        "symbol": "PACK",
        "name": "PACK",
        "decimals": 8
      },
      "quoteToken": {
        "tokenId": 2955465931,
        "entityId": "0.0.2955465931",
        "symbol": "PACK",
        "name": "PACK",
        "decimals": 8
      },
      "side": "SELL",
      "orderId": "123e4567-e89b-12d3-a456-426614174000",
      "requestedQuantity": 1,
      "requestedQuoteBudget": 1,
      "orderStatus": "FILLED",
      "filled": 1,
      "exchangedValue": 1,
      "failureCode": "NO_USDC_MARKET",
      "failureMessage": "text",
      "failureTxId": "text",
      "failureEventId": 1,
      "submittedAt": "2026-01-01T00:00:00.000Z",
      "terminalAt": "2026-01-01T00:00:00.000Z",
      "fills": [
        {
          "id": 12345,
          "cursorId": 93812,
          "txId": "0.0.1234-1718377300-000000001",
          "fillTime": "2026-01-01T00:00:00.000Z",
          "bidOrderId": "123e4567-e89b-12d3-a456-426614174000",
          "askOrderId": "123e4567-e89b-12d3-a456-426614174000",
          "symbolId": 123,
          "price": 1,
          "volume": 1,
          "quoteVolume": 1,
          "usdVolume": 1,
          "buyerFee": 1,
          "sellerFee": 1,
          "makerIsBid": true
        }
      ]
    }
  ]
}

List fee collector sweep runs

get

Returns durable fee collector sweep run summaries, newest first. This endpoint is public and intended for third-party tracking of fee collector rebalancing outcomes.

Weight: 1

Query parameters
statusstring · enumOptional

Filter by run status

Example: COMPLETEDPossible values:
targetTokenIdinteger · int64Optional

Filter by target token id

Example: 0
fromstring · date-timeOptional

Inclusive lower bound for run start time

Example: 2026-06-14T00:00:00Z
tostring · date-timeOptional

Exclusive upper bound for run start time

Example: 2026-06-15T00:00:00Z
cursorstringOptional

Opaque cursor returned by the previous page

limitinteger · int32Optional

Page size, clamped to 1..200

Example: 50
Responses
200

Sweep run page

application/json

Cursor-paginated fee collector sweep runs

nextCursorstringOptional

Cursor for the next page, if another page is available

get/api/v1/feeCollector/sweeps
GET /api/v1/feeCollector/sweeps HTTP/1.1
Host: api.lambdaplex.io
Accept: */*
{
  "sweeps": [
    {
      "runId": "123e4567-e89b-12d3-a456-426614174000",
      "status": "COMPLETED",
      "feeCollectorAccount": "0.0.4321",
      "feeCollectorAccountId": 4321,
      "targetToken": {
        "tokenId": 2955465931,
        "entityId": "0.0.2955465931",
        "symbol": "PACK",
        "name": "PACK",
        "decimals": 8
      },
      "usdToken": {
        "tokenId": 2955465931,
        "entityId": "0.0.2955465931",
        "symbol": "PACK",
        "name": "PACK",
        "decimals": 8
      },
      "startedAt": "2026-01-01T00:00:00.000Z",
      "finishedAt": "2026-01-01T00:00:00.000Z",
      "skipReason": "OPEN_ORDERS_PRESENT",
      "failureClass": "text",
      "failureMessage": "text",
      "sellActionsPlanned": 1,
      "sellActionsSubmitted": 1,
      "buyActionsSubmitted": 1,
      "terminalActions": 1,
      "failedActions": 1,
      "timedOutActions": 1
    }
  ],
  "nextCursor": "text"
}

Look up a fee collector sweep action by order id

get

Returns the tracked sweep action and parent run for an exchange order submitted by a sweep.

Weight: 1

Query parameters
orderIdstring · uuidRequired

Exchange-assigned order id

Example: 4dd3b1a9-4bd1-42e7-a60e-73a34f63087d
Responses
200

Sweep action lookup

application/json

Sweep action and parent run for an order lookup

get/api/v1/feeCollector/sweepActions
GET /api/v1/feeCollector/sweepActions?orderId=123e4567-e89b-12d3-a456-426614174000 HTTP/1.1
Host: api.lambdaplex.io
Accept: */*
{
  "run": {
    "runId": "9a6b8f91-1d37-4f31-83ef-0f61a4f54c18",
    "status": "COMPLETED"
  },
  "action": {
    "kind": "SELL_NON_TARGET",
    "status": "TERMINAL"
  }
}

List fee collector buybacks

get

Returns the public cursor-forward feed of fee collector target-token buyback actions. Without a cursor, the endpoint bootstraps from the latest entries and returns them oldest-to-newest. Persist nextCursor and pass it back on the next polling request to fetch only newer entries.

Weight: 1

Query parameters
cursorstringOptional

Opaque cursor returned by a previous buyback feed response

Example: v1:1781635200000:942
limitinteger · int32Optional

Page size, clamped to 1..200

Example: 50
Responses
200

Buyback feed page

application/json

Cursor-forward fee collector buyback feed

nextCursorstringOptional

Cursor to persist for the next polling request. Present whenever at least one entry is returned.

get/api/v1/feeCollector/buybacks
GET /api/v1/feeCollector/buybacks HTTP/1.1
Host: api.lambdaplex.io
Accept: */*
{
  "buybacks": [
    {
      "cursor": "v1:1781635200000:942",
      "actionId": 942,
      "publicType": "BUYBACK",
      "runId": "123e4567-e89b-12d3-a456-426614174000",
      "actionIndex": 1,
      "status": "TERMINAL",
      "feeCollectorAccount": "0.0.4321",
      "marketSymbol": "PACK-USDC",
      "symbolId": 123,
      "targetToken": {
        "tokenId": 2955465931,
        "entityId": "0.0.2955465931",
        "symbol": "PACK",
        "name": "PACK",
        "decimals": 8
      },
      "quoteToken": {
        "tokenId": 2955465931,
        "entityId": "0.0.2955465931",
        "symbol": "PACK",
        "name": "PACK",
        "decimals": 8
      },
      "side": "BUY",
      "orderId": "123e4567-e89b-12d3-a456-426614174000",
      "requestedQuoteBudget": 1,
      "orderStatus": "FILLED",
      "filledQuantity": 1,
      "quoteSpent": 1,
      "averagePrice": 1,
      "fillCount": 1,
      "txIds": [
        "text"
      ],
      "failureCode": "NO_USD_AVAILABLE",
      "failureMessage": "text",
      "submittedAt": "2026-01-01T00:00:00.000Z",
      "terminalAt": "2026-01-01T00:00:00.000Z",
      "createdAt": "2026-01-01T00:00:00.000Z",
      "updatedAt": "2026-01-01T00:00:00.000Z"
    }
  ],
  "nextCursor": "text"
}

Last updated