Added

Positions API - Sync Query Parameter

Added new sync query parameter to the /wallets/{address}/positions endpoint.

Description

The sync parameter enables synchronous position updates. When enabled, the request waits for protocol positions to be updated and returns the fresh data in the same request, rather than returning immediately with cached data.

  • true: The endpoint will wait up to 30 seconds for position data to be updated before responding. If data is ready sooner, the response is returned immediately.
  • false (default): The endpoint returns immediately with available position data.

Usage

GET /wallets/{address}/positions?sync=true

Important Notes

  • Requests with sync=true may take significantly longer to complete (up to 30 seconds)
  • Clients should configure appropriate timeout settings to accommodate longer response times
  • Use this parameter when you need to ensure the most up-to-date position data