Public Api

MyLocalCoin Exchange provides HTTP APIs for interacting with the exchange only for public market data.

- Ticker
- Chart Data

The HTTP API allows read access to public market data through the public endpoint -

- Public HTTP Endpoint: https://mylocalcoin.com/api/public

Ticker

Retrieves summary information for each currency/coin pair listed on the exchange. - Ticker Endpoint: https://mylocalcoin.com/api/public?command=returnTicker

Array ( [0] => USD_BTC [1] => BTG_BTC [2] => XRP_BTC [3] => DASH_BTC [4] => XMR_BTC [5] => ETH_BTC [6] => PIVX_BTC [7] => USDT_BTC [8] => DOGE_BTC [9] => XZC_BTC [10] => ZEC_BTC [11] => QTUM_BTC [12] => BTC_ETH [13] => BTG_ETH [14] => XRP_ETH [15] => DASH_ETH [16] => XMR_ETH [17] => PIVX_ETH [18] => USDT_ETH [19] => DOGE_ETH [20] => XZC_ETH [21] => ZEC_ETH [22] => QTUM_ETH [23] => BTC_USDT [24] => BTG_USDT [25] => XRP_USDT [26] => DASH_USDT [27] => XMR_USDT [28] => ETH_USDT [29] => PIVX_USDT [30] => DOGE_USDT [31] => XZC_USDT [32] => ZEC_USDT [33] => QTUM_USDT [34] => BTX_BTC [35] => KLC_BTC [36] => BTX_USDT [37] => BTX_ETH [38] => DCR_BTC [39] => ETN_BTC [40] => OMNI_BTC [41] => BTDX_BTC [42] => BTDX_USDT [43] => BTDX_ETH [44] => MEC_BTC [45] => MEC_USDT [46] => MEC_ETH [47] => BSD_BTC [48] => BSD_ETH [49] => BSD_USDT )

Field

Description

Last

Execution price for the most recent trade for this pair.

percentChange

Price change

percentage.

baseVolume Base units traded in the last 24 hours.

coinVolume

Coin/Currency Volume traded in the last 24 hours.

High24hr

The highest execution price for this pair within the last 24 hours.

Low24hr

The lowest execution price for this pair within the last 24 hours.

Retrieves summary information for a specified currency/coin pair listed on the exchange -

- Public HTTP Endpoint: https://mylocalcoin.com/api/public?command=returnTicker&coinPair=DOGE_BTC

Chart Data

Returns candlestick chart data. Required GET parameters are "coinPair", "interval" (candlestick interval in minutes; valid values are 5 = 5min, 15 = 15min, 30 = 30min, 120 = 2hr, 240 = 4hr, 1440 = 1 day). Fields include:

- Ticker Endpoint: https://mylocalcoin.com/api/public?command=returnChartData&coinPair=DOGE_BTC&inter val=1440

Field

Description

date

The date for this candle

open

The price for this asset at the start of the candle

close

The price for this asset at the end of the candle.

high

The highest price for this asset within this candle.

low

The lowest price for this asset within this candle

BTG_BTC https://mylocalcoin.com/api/public?command=returnTicker&coinPair=BTG_BTC
BTX_BTC https://mylocalcoin.com/api/public?command=returnTicker&coinPair=BTX_BTC
XRP_BTC https://mylocalcoin.com/api/public?command=returnTicker&coinPair=XRP_BTC
DASH_BTC https://mylocalcoin.com/api/public?command=returnTicker&coinPair=DASH_BTC
XMR_BTC https://mylocalcoin.com/api/public?command=returnTicker&coinPair=XMR_BTC
ETH_BTC https://mylocalcoin.com/api/public?command=returnTicker&coinPair=ETH_BTC
PIVX_BTC https://mylocalcoin.com/api/public?command=returnTicker&coinPair=PIVX_BTC
USDT_BTC https://mylocalcoin.com/api/public?command=returnTicker&coinPair=USDT_BTC
DOGE_BTC https://mylocalcoin.com/api/public?command=returnTicker&coinPair=DOGE_BTC
XZC_BTC https://mylocalcoin.com/api/public?command=returnTicker&coinPair=XZC_BTC
ZEC_BTC https://mylocalcoin.com/api/public?command=returnTicker&coinPair=ZEC_BTC
QTUM_BTC https://mylocalcoin.com/api/public?command=returnTicker&coinPair=QTUM_BTC
BTC_ETH https://mylocalcoin.com/api/public?command=returnTicker&coinPair=BTC_ETH
BTG_ETH https://mylocalcoin.com/api/public?command=returnTicker&coinPair=BTG_ETH
XRP_ETH https://mylocalcoin.com/api/public?command=returnTicker&coinPair=XRP_ETH
DASH_ETH https://mylocalcoin.com/api/public?command=returnTicker&coinPair=DASH_ETH
XMR_ETH https://mylocalcoin.com/api/public?command=returnTicker&coinPair=XMR_ETH
PIVX_ETH https://mylocalcoin.com/api/public?command=returnTicker&coinPair=PIVX_ETH
USDT_ETH https://mylocalcoin.com/api/public?command=returnTicker&coinPair=USDT_ETH
DOGE_ETH https://mylocalcoin.com/api/public?command=returnTicker&coinPair=DOGE_ETH
XZC_ETH https://mylocalcoin.com/api/public?command=returnTicker&coinPair=XZC_ETH
ZEC_ETH https://mylocalcoin.com/api/public?command=returnTicker&coinPair=ZEC_ETH
QTUM_ETH https://mylocalcoin.com/api/public?command=returnTicker&coinPair=QTUM_ETH
BTC_USDT https://mylocalcoin.com/api/public?command=returnTicker&coinPair=BTC_USDT
BTG_USDT https://mylocalcoin.com/api/public?command=returnTicker&coinPair=BTG_USDT
XRP_USDT https://mylocalcoin.com/api/public?command=returnTicker&coinPair=XRP_USDT
DASH_USDT https://mylocalcoin.com/api/public?command=returnTicker&coinPair=DASH_USDT
XMR_USDT https://mylocalcoin.com/api/public?command=returnTicker&coinPair=XMR_USDT
ETH_USDT https://mylocalcoin.com/api/public?command=returnTicker&coinPair=ETH_USDT
PIVX_USDT https://mylocalcoin.com/api/public?command=returnTicker&coinPair=PIVX_USDT
DOGE_USDT https://mylocalcoin.com/api/public?command=returnTicker&coinPair=DOGE_USDT
XZC_USDT https://mylocalcoin.com/api/public?command=returnTicker&coinPair=XZC_USDT
ZEC_USDT https://mylocalcoin.com/api/public?command=returnTicker&coinPair=ZEC_USDT
QTUM_USDT https://mylocalcoin.com/api/public?command=returnTicker&coinPair=QTUM_USDT