Em Andamento

JSON print history and orderbook

[url removed, login to view]

I have a market and need someone to create the 2 JSON files for each Currency I have USD and BRL.

To integrate with bitcoincharts you need to provide complete trade history and orderbook. JSON is preferred. It's best to provide trade and orderbook data at seperate urls (e.g. /api/[url removed, login to view] and /api/[url removed, login to view]). Bitcoincharts will query those URLs every few seconds so make sure to cache them heavily.

If your markets supports multiple currencies it's best to provide data for each currency at separate URLs. E.g. /api/USD/[url removed, login to view], /api/EUR/[url removed, login to view]

[url removed, login to view]

This file contains an JSON array of trades. It will receive a GET parameter called "since" with a trade ID as it's argument. Your API must return all trades with higher trade IDs than this.

[{"date": UNIXTIME, "price": PRICE, "amount": AMOUNT, "tid": TRADE_ID}, ...]

date is the unixtimestamp of the trade

price is the price as in your markets currency (e.g. USD). Make sure it's not a float but a real decimal. You may add quotes if that makes things easier for you.

amount is the amount of bitcoins exchanged in that trade. Don't use floats here either. You may add quotes, too.

tid is a unique trade id (monotonically increasing integer) for each trade

Example

[{"date":1306148860,"price":[url removed, login to view],"amount":1,"tid":"82771"},{"date":1306149340,"price":[url removed, login to view],"amount":1,"tid":"82772"}]

[url removed, login to view]

This file contains the complete orderbook (or market depth). It is an JSON dictionary with two keys ("asks" and "bids"). Each key holds an array of arrays with price/amount pairs.

{"asks": [[PRICE, AMOUNT], ...], "bids": [[PRICE, AMOUNT], ...]}

PRICE is the amount of e.g. USD one Bitcoin costs. AMOUNT is the number of Bitcoins in that order.

Don't use floats! You may add quotes around PRICE and AMOUNT.

Example

{"asks":[[[url removed, login to view],1],[[url removed, login to view],[url removed, login to view]]],"bids":[[[url removed, login to view],5],[[url removed, login to view],[url removed, login to view]]]}

Habilidades: Javascript

Ver mais: integer real number, usd bitcoin, json, json c, History, bitcoin api, currency javascript, javascript json, orderbook, add print, multiple trades, bitcoin history, bitcoins api, bitcoin market data, javascript json api, example history, add bitcoin, json query, json example, api json file data, bitcoins usd, bitcoin usd, print api, bitcoin json, markets api

Acerca do Empregador:
( 7 comentários ) Sacramento, Brazil

ID do Projeto: #5142885

3 freelancers estão ofertando em média $48 para este trabalho

novaemp

A proposal has not yet been provided

$50 USD in 2 dias
(7 Comentários)
3.7
choks1991

Hi...Here is exp json developer.i can give u this json file asap ..i can do it in 3 to 4hours only.we can discuss more Thank you

$40 USD in 0 dias
(7 Comentários)
2.9
rsen75

hi, i'm 14+ experienced with strong knowledge of API integration for many CMS and ECOM see my few portfolio **WooCommerce Payment Plugins ccavenue wolrd / paypal pro /SEYLAN bank/libertyreserve/perfectmon Mais

$54 USD in 3 dias
(1 Comentário)
2.0