Transaction History

Endpoint: /api/v1/spot/history

  • Method: GET
  • Description: This endpoint retrieves the history of transactions for a user, including buy, sell, and swap transactions.
  • Headers:
    • X-ORG-CODE (string): Required. The organization's unique code.
    • X-CUSTOMERID (string): Required. The customer’s unique identifier.
    • Responses:
      200 OK: Successful operation, returns a SpotHistoryResponse. 400 Bad Request: The request was invalid, returns an Error object. 500 Internal Server Error: The server encountered an unexpected condition, returns an Error object.
  • Security: Requires authentication via test-cognito-auth.