General API Information

General API Information

  • The base endpoint is: https://exchange.bartertrade.io/api

  • All endpoints return either a JSON object or array.

  • Data is returned in ascending order. Oldest first, newest first.

  • All time and timestamp related fields are in milliseconds.

  • Precision is 8 digits.

General Information on Endpoints

  • For GET endpoints, parameters must be sent as a query string.

  • For POST, PUT, and DELETE endpoints, the parameters will be sent in the request body with content type application/json

  • Parameters may be sent in any order.

  • We will block API hits (API limit) over time, an update available in ./api/v2

General Info on Limits

  • The following intervalLetter values for headers:

    • SECOND => S

    • MINUTE => M

    • HOUR => H

    • DAY => D

  • intervalNum describes the amount of the interval. For example, intervalNum 5 with intervalLetter M means "Every 5 minutes".

  • The /api/exchangeInfo rateLimits array contains objects related to the exchange's RAW_REQUEST, REQUEST_WEIGHT, and ORDER rate limits. These are further defined in the ENUM definitions section under Rate limiters (rateLimitType).

  • A 429 will be returned when either rate limit is violated.

  • The limits on the API are based on the the API keys.

Last updated

Was this helpful?