REST API
Use these endpoints to send REST requests https://trade.finerymarkets.com/api (or https://test.finerymarkets.com/api for test environment).
There are general rules for all REST requests:
All calls should be signed using key/secret pair
All calls are POST requests
All calls use
application/json
formatAdditional nonce (
unsigned int64
) and timestamp (Efx::Timestamp
) parameters are requiredEFX-Key
andEFX-Sign
HTTP headers are used for authentication
To authenticate a request send additional headers:
EFX-Key
: your public key
EFX-Sign
: content signature. Concatenate a name of an API method with payload string and sign it with your private key using HMAC SHA384.
In order to protect from attacks, it is required to send a nonce and timestamp. Any new value of nonce must be bigger than the previous one. You may use the same nonce with multiple keys, but make sure its value is constantly increasing.
Do not use the same key with multiple asynchronous REST services, it will be difficult to synchronise nonce values.
See an example of REST request below. Generating a signature for REST request using key/secret pair (javascript with CryptoJS lib):
Important. To create a valid signature concatenate a method name with a payload string. Use the same payload string as you send in the request.
Last updated