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": "2025-10-27T10:42:18.137Z",
            "amount": 1,
            "amountUsd": 1
          }
        ]
      }
    ]
  }
}

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[]
resolution
enum<string>

Time interval for historical snapshots. Controls the granularity of data points returned.

Available options:
1m,
5m,
1h,
1d

Response

200 - application/json

OK

data
object
required