Skip to main content
Successful responses and documented JSON error bodies use the same three fields: message, status_code, and data.
  • On success: status_code is "1", message is "OK", and data holds the result.
  • On error: status_code is "0", message describes the problem, and data is null.
Use the HTTP status code to determine the type of error.

Status codes

Empty results are not errors

A valid request that finds nothing is not an error. It still succeeds with HTTP 200 and status_code "1". The empty shape depends on the endpoint:
  • List endpoints (activity, deposits & withdrawals, positions, rewards) return an empty items array:
  • Get Wallet Address keeps the data object and returns data.walletAddress: null when no mapping exists:
Don’t treat these 200 responses as failures. Check the endpoint’s documented data shape to detect an empty result.

Handling errors in code