API

Welcome to Exchange APIs

 

To get started with Exchange APIs, find an API key at Account -> Personal data tab

 

Sample of usage:

 
import requests

session = requests.session()
session.headers.update({"API_KEY": YOUR API KEY})

response = session.get(
    url="https://richamster.com/public/v1/exchange/order-book/",
    params={
        "pair": "BTC/UAH",
        "side": "buying"
    }
)

response.raise_for_status()
print(response.json())
 

Success response schema:

 
{
  "success": true,
  "data": [{}, {}]
}
 

Error response schema:

 
{
  "type": "client_error",
  "errors": [
    {
      "code": "",
      "detail": "",
      "attr": null
    }
  ]
}



Full API docs you can find HERE