Public Rest API for Brine
Introduction
This document details the use of Brine’s REST API for spot exchange. This helps you automate trades in real-time, stream live crypto rates and build other integrations for your trading journey.
Our REST API is organized into publicly accessible endpoints (market data, exchange status, etc.), and private authenticated endpoints (trading, funding, user data) which require requests to be signed.
General API Information
Below we have mentioned the basic details that would help you setup your Dapp on top of Brine:
- The base endpoint is: https://api.brine.fi/
- All endpoints return either a JSON object or array.
- All time and timestamp related fields are in milliseconds or default datetime format - “%Y-%m-%d %H:%M:%S”
- Kindly note that you need to create an account on Brine using your ETH wallet before using any of the APIs. Failure to do so might cause inconsistent API responses. This is an important step as this will help us create your username and Brine keys which are needed for accessing Brine’s APIs
Error Information
- If there is an error, the API will return an error with a message containing/detailing the reason.
Sample Error Response:
{
"status": "error",
"message": "Invalid symbol.",
"payload": {}
}