Ezoex provides a simple and powerful REST API to allow you to programatically perform nearly all actions you can from our web interface. All requests use the application/json content type and go over https. The base url is https://api.ezoex.com /.
We are currently restricting orders to 400 open orders and 150,000 orders a day. We reserve the right to change these settings as we tune the system. If you are affected by these limits as an active trader, please write to mailto:[email protected].
If you have any questions, feedback or recommendation for API support you can post a question in our support.
We provide a simple RESTful API. All calls are GETs and should be called via https. The endpoints have a standard format as follows:
https://api.ezoex.com/{method}?param=value
In the spirit of keeping things simple, we offer an easy to manage API Key authentication method. You can have multiple API keys, each with their own level of rights. To manage your API keys please go to Settings > Manage API Keys.
Each api key can be configured with different permissions
For this version, we use a standard HMAC-SHA512 signing. Append apikey and nonce to your request and calculate the HMAC hash and include it under an apisign header. Note: the nonce is not respected right now but will be enforced later.
$apikey='xxx';
$apisecret='xxx';
$nonce=time();
$uri='https://api.ezoex.com/market/getopenorders?apikey='.$apikey.'&nonce='.$nonce;
$sign=hash_hmac('sha512',$uri,$apisecret);
$ch = curl_init($uri);
curl_setopt($ch, CURLOPT_HTTPHEADER, array('apisign:'.$sign));
$execResult = curl_exec($ch);
$obj = json_decode($execResult);
Our APIs are broken into three distinct groups
Used to get the open and available trading markets at Ezoex along with other meta data.
None
Used to get all supported currencies at Ezoex along with other meta data.
None
Used to get the current tick values for a market.
None
Used to get the last 24 hour summary of all active markets.
None
Used to get retrieve the orderbook for a given market.
Parameter | Required | Description |
---|---|---|
pairId |
required | a string literal for the market (ex: LTCUSDT) |
Used to place a buy order in a specific market. Use buylimit to place limit orders. Make sure you have the proper permissions set on your API keys for this call to work.
Parameter | Required | Description |
---|---|---|
pair |
required | a string literal for the market (ex: LTCBTC) |
amount |
required | the amount to purchase |
price |
required | the price at which to place the order |
Used to place an sell order in a specific market. Use selllimit to place limit orders. Make sure you have the proper permissions set on your API keys for this call to work.
Parameter | Required | Description |
---|---|---|
pair |
required | a string literal for the market (ex: LTCBTC) |
amount |
required | the amount to purchase |
price |
required | the price at which to place the order |
Used to cancel a buy or sell order.
Parameter | Required | Description |
---|---|---|
pair |
required | a string literal for the market (ex: LTCBTC) |
uuid |
required | uuid of buy or sell order |
Get all orders that you currently have opened. A specific market can be requested.
Parameter | Required | Description |
---|---|---|
pair |
optional | a string literal for the market (ie. LTCBTC) |
Get all orders that you currently have opened. A specific market can be requested.
Parameter | Required | Description |
---|---|---|
uuid |
required | uuid of buy or sell order |
Used to retrieve your order history. Ordered by descending of CloseDateTime
Parameter | Required | Description |
---|---|---|
pair |
optional | a string literal for the market (ie. LTCBTC) |
pageSize |
optional | The amount of orders per page (Max - 200; Default - 30) |
page |
optional | The page to retrieve |
Used to retrieve all balances from your account. Note: If the currency is not listed, the balance for this currency is 0
None
[For crypto only] Used to withdraw funds from your account. Note: please account for txfee
Parameter | Required | Description |
---|---|---|
currency |
required | a string literal for the currency (ie. BTC) |
amount |
required | the quantity of coins to withdraw |
address |
required | the address where to send the funds |
paymentid |
optional | used for CryptoNotes/BitShareX/NXT/XRP and any other coin that has a memo/message/tag/paymentid option |
Used to withdraw funds from your account via Code. (No fee)
Parameter | Required | Description |
---|---|---|
currency |
required | a string literal for the currency (ie. BTC) |
amount |
required | the quantity of coins to withdraw |
Used to add funds to your account via Code
Parameter | Required | Description |
---|---|---|
code |
required | Code to redeem |