There are 3 methods in EveryWallet Exchange API – to get various information about the market situation:
Replace asterisks (*) with an exchange direction code. You may find this code in
Exchange market page URL, as a parameter #ticker={ticker_code}.
Method | Request format | Description |
---|---|---|
ticker | http://everywallet.com/api/trade/*/ticker | Returns ticker information. |
trades | http://everywallet.com/api/trade/*/trades | Returns trade history. |
depth | http://everywallet.com/api/trade/*/depth | Returns market depth. |
Here are some examples of using EveryWallet Exchange API methods.
ticker
This request is called ticker-method for exchange direction ‘WMZ to WMR’:
1 |
http://everywallet.com/api/trade/wmz_wmr/ticker |
A response can be as follows:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
{ "ticker": { "code": "wmz_wmr", "buyFee": "3.0000", "sellFee": "2.0000", "high": "33.98000000", "low": "30.63460000", "avg": "31.7497333333333333", "vol": "100.50000000", "last": "31.25000", "updated": 1404704432972, "buy": "2043.25000000", "sell": "1984.70000000", "serverTime": 1404715003999 } } |
In this example the direction details are as follows:
trades
This request calls trades-method for exchange direction ‘WMZ to WMR’:
1 |
http://everywallet.com/api/trade/wmz_wmr/trades |
A response can be as follows:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
{ "ticker": { "code": "wmz_wmr", "item": "WMZ", "priceCurrency": "WMR" }, "trades": [ { "date": 1404704432972, "price": 33.98, "amount": 0.5, "value": 16.99, "type": "ask" }, { "date": 1404704428557, "price": 30.6346, "amount": 1, "value": 30.6346, "type": "bid" } ] } |
In this example, there were 2 trades processed during last 24 hours:
depth
This request calls depth-method for exchange direction ‘WMZ to WMR’:
1 |
http://everywallet.com/api/trade/wmz_wmr/depth |
A response can be as follows:
1 2 3 |
<strong>depth</strong> |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
{ "ticker": { "code": "wmz_wmr", "item": "WMZ", "priceCurrency": "WMR" }, "asks": [ [ 29.26, // price 6.05 // amount ], [ 28.412, // price 7.41 // amount ] ], "bids": [ [ 35.4124, // price 1.125 // amount ], [ 36, // price 28.512 // amount ] ] } |
In this example, WMZ-WMR orderbook looks like that:
1 2 3 4 |
| Broker | Qty | Price || Price | Qty | Broker | | A | 6.05 | 29.26 || 35.4124 | 1.125 | X | | B | 7.41 | 28.412 || 36 | 28.512 | Y | |
Parameter | JSON format | Description |
---|---|---|
ticker |
||
code | String | Exchange direction code. |
buyFee | Number | Comission taken from a buyer (in base-currency). |
sellFee | Number | Commission taken from a seller (in counter-currency). |
high | Number | Highest price reached during 24 hours. |
low | Number | Lowest price reached during 24 hours. |
avg | Number | Average price for 24 hours period. |
vol | Number | Trade volume for the last 24 hours. |
last | Number | Current price (in counter-currency). |
updated | Number | Time of the last trade (in milliseconds since 1970). |
buy | Number | Volume of a base currency bought during last 24 hours. |
sell | Number | Volume of a base currency sold during last 24 hours. |
serverTime | Number | Server time at the moment of calling request (in milliseconds since 1970). |
trades |
||
code | String | Exchange direction code. |
item | String | Base currency. |
priceCurrency | String | Counter currency. |
date | Number | Trade time (in milliseconds since 1970). |
price | Number | Trade price. |
amount | Number | Trade amount in base-currency. |
value | Number | Appropriate amount in counter-currency. |
type | String | Type of order initiated the trade (sell/buy). |
depth |
||
code | String | Exchange direction code. |
item | String | Base currency. |
priceCurrency | String | Counter currency. |