Position

Returns a filtered list of fills for a given position

get/v1/position/fill

Query parameters

order'asc' | 'desc'

Direction to paginate through objects

limitinteger

Limit the number of objects to return

cursorstring

Pointer to the current object in pagination dataset

positionIdstring uuid required
Example:81215694-2d9f-4a87-af57-a710118938c0

Id of the position to filter fills by

orderBy'price' | 'filled' | 'createdAt'
Example:price

Order by field

Response

hasNextboolean required

Whether there are more objects to paginate through

nextCursorstring

Pointer to the next page in pagination dataset

Example response

{
  "data": [
    {
      "createdAt": 1712019600000,
      "feeUsd": "3.049563",
      "filled": "2.420",
      "price": "4200.5",
      "realizedPnl": "3.049563",
      "type": "LIMIT"
    }
  ],
  "hasNext": true
}

Changes

Changed in 1 of the 2 revisions of this API.11

  • 63e8937ff6f711See the full diff
    • added the new SETTLEMENT enum value to the // response property for the response status

      response-property-enum-value-added

    • added the non-success response with the status

      response-non-success-status-added