Litecoin
    Electronic Currency
  • Litecoin
  • Bitcoin
  • USD
 
Bitcoin
    Electronic Currency
  • Litecoin
  • Bitcoin
  • USD
Amount
Change currency:
Give
Get

API

Facilities

There are 3 methods in EveryWallet Exchange API – to get various information about the market situation:

  • Ticker info. Gets details of the chosen exchange direction: highest and lowest prices, traded volume, current fees, etc.
  • Trade history. Returns a list of trades, performed during last 24 hours.
  • Market depth. Gets actual information about the orderbook: amounts and prices of all active bid / ask orders.

 

API methods

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.

 

Code samples

Here are some examples of using EveryWallet Exchange API methods.

ticker

This request is called ticker-method for exchange direction ‘WMZ to WMR’:

A response can be as follows:

In this example the direction details are as follows:

  • Fee for buyers – 3% (in WMZ)
  • Fee for sellers – 2% (in WMR)
  • Highest price – 33.98 WMR for 1 WMZ
  • Lowest price – 30.6346 WMR for 1 WMZ
  • Average price – 31.7497333333333333 WMR for 1 WMZ
  • Trade volume – 100.5 WMZ
  • Current price – 31.25 WMR for 1 WMZ
  • Time of the last trade – Mon Jul 07 2014 07:40:32 GMT+0400 (MSK)
  • Volume of bought WMZ – 2043.25 WMZ
  • Volume of sold WMZ – 1984.7 WMZ
  • Server time at the request moment – Mon Jul 07 2014 0:36:43 GMT+0400 (MSK)

trades

This request calls trades-method for exchange direction ‘WMZ to WMR’:

A response can be as follows:

In this example, there were 2 trades processed during last 24 hours:

  • Buy-order of ‘0.5 WMZ for 33.98‘ (16.99 WMR) at Mon Jul 07 2014 07:40:32 GMT+0400 (MSK)
  • Sell-order of ‘1 WMZ for 30.6346‘ (30.6346 WMR) at Mon Jul 07 2014 07:40:28 GMT+0400 (MSK)

depth

This request calls depth-method for exchange direction ‘WMZ to WMR’:

A response can be as follows:

 

In this example, WMZ-WMR orderbook looks like that:

 

 

Formats

 

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.