Skip to main content
GET
/
v0
/
positions
/
history
Get historical position snapshots
curl --request GET \
  --url https://markets.dial.to/api/v0/positions/history \
  --header 'x-dialect-api-key: <api-key>'
{
  "data": {
    "positions": [
      {
        "id": "<string>",
        "providerId": "kamino",
        "type": "lending",
        "marketId": "<string>",
        "history": [
          {
            "timestamp": "2023-11-07T05:31:56Z",
            "amount": 123,
            "amountUsd": 123
          }
        ]
      }
    ]
  }
}

Authorizations

x-dialect-api-key
string
header
default:pk_demo
required

API key for the Markets API

Query Parameters

walletAddress
string
default:6JpNV6DK88auwzKVizdeT4Bw3D44sam5GqjcPCJ7y176
required
Example:

"6JpNV6DK88auwzKVizdeT4Bw3D44sam5GqjcPCJ7y176"

startTime
string<date-time>
default:2025-06-01T00:00:00Z
required

Start time of the snapshot. Date or datetime in RFC 3339 format

Example:

"2025-06-01T00:00:00Z"

endTime
string<date-time>
default:2025-10-09T23:59:59Z
required

End time of the snapshot. Date or datetime in RFC 3339 format

Example:

"2025-10-09T23:59:59Z"

positionIds
string[]

Response

200 - application/json

OK

data
object
required
I