Are you an LLM? Read llms.txt for a summary of the docs, or llms-full.txt for the full context.
Skip to content

userTwapSliceFills

TWAP slice fills. Page with from / limit (not offset). data is { isSnapshot, user, twapSliceFills }, not a paged { data, hasMore, total } object. The live stream is userTwapSliceFills.

POST/infotype userTwapSliceFills

List the individual child fills of a user’s TWAP orders.

Request body
typestringrequired

Must be `userTwapSliceFills`.

"userTwapSliceFills"
userstring · addressrequired

Account to query. No auth — the body `user` is the subject.

coinstringoptional

Single instrument — a name (`BTC`, `BTC-USDC`) or the numeric id from `perpMeta`. Prefer this over `contract` for one market.

endTimeMsinteger · uint64optional

Inclusive window end, Unix milliseconds. Alias: `endTime`.

frominteger · int64optional

Cursor for the next page. Do not use `offset`.

limitinteger · uint32optional

Page size for this cursor read.

startTimeMsinteger · uint64optional

Inclusive window start, Unix milliseconds. Alias: `startTime`.

twapIdinteger | stringoptional

Restrict to one TWAP. Number or numeric string.

Request example
curl -X POST https://rpc.txflow-testnet.xyz/info \
  -H "Content-Type: application/json" \
  -H "x-api-version: 2026-08-16" \
  -d '{
  "type": "userTwapSliceFills",
  "user": "0x0000000000000000000000000000000000000001",
  "from": 0,
  "limit": 100
}'
Try it
POST https://rpc.txflow-testnet.xyz/info
Response 200
codeinteger

`0` on success.

dataobject
isSnapshotboolean
twapSliceFillsUserTwapSliceFill[]
userstring · address
successboolean
Response example
{
  "success": true,
  "code": 0,
  "data": {
    "isSnapshot": true,
    "user": "0x0000000000000000000000000000000000000001",
    "twapSliceFills": [
      {
        "twapId": "9001",
        "status": "finished",
        "failureReason": "",
        "fill": {
          "closedPnl": "0",
          "coin": "1",
          "symbol": "BTC-USDC",
          "crossed": true,
          "dir": "Open Long",
          "hash": "0xabc",
          "oid": 123456,
          "px": "65010.5",
          "side": "B",
          "startPosition": "0",
          "sz": "0.002",
          "time": 1720000000000,
          "fee": "0.004",
          "tid": 987654,
          "feeToken": "USDC"
        }
      }
    ]
  }
}