Skip to main content
GET
/
api
/
v1
/
twap_history
Get TWAP order history
curl --request GET \
  --url https://api.mainnet.aptoslabs.com/decibel/api/v1/twap_history \
  --header 'Authorization: Bearer <token>'
{
  "items": [
    {
      "client_order_id": "client_order_123",
      "duration_s": 300,
      "frequency_s": 30,
      "is_buy": true,
      "is_reduce_only": true,
      "market": "0xmarket123...",
      "order_id": "<string>",
      "orig_size": 123,
      "remaining_size": 123,
      "start_unix_ms": 1730841600000,
      "status": "<string>",
      "transaction_unix_ms": 123,
      "transaction_version": 1
    }
  ],
  "total_count": 1
}

Authorizations

Authorization
string
header
required

Bearer token from Geomi. See Authentication for setup instructions.

Query Parameters

account
string
required

User account address

pagination
object
required

Pagination parameters (limit and offset)

Response

TWAP history retrieved successfully

items
object[]
required

The items in the current page

total_count
integer<int32>
required

The total number of items across all pages

Required range: x >= 0