A PHP Error was encountered

Severity: Notice

Message: Use of undefined constant english - assumed 'english'

Filename: controllers/Pages.php

Line Number: 12

Backtrace:

File: /storage/public/exchange/application/controllers/Pages.php
Line: 12
Function: _error_handler

File: /storage/public/exchange/index.php
Line: 315
Function: require_once

FreiExchange
Public Channels
Api Documentation

Currently there is just a few json api functions implented. It will be extended as needed. Coincode is the shortcode FRC, ANC, SDR etc etc.

Public Information

For market ticker for all markets on exchange, use https://freiexchange.com/api/returnTicker

https://freiexchange.com/api/returnTicker (tickerdata for all markets)

"FRC_BTC": [ { "tradepair": "FRC_BTC", "marketid": "1", "volume24h": "3287.74870008", "average24h": "0.00000098", "high": "0.00000100", "low": "0.00000095", "last": "0.00000095", "volume24h_btc": "0.00312961", "percent_change_24h": "-3.157894736842" } ], "SDR_BTC": [ { "tradepair": "SDR_BTC", "marketid": "3", "volume24h": "0.00000000", "average24h": "0.00000000", "high": "0.00000000", "low": "0.00000000", "last": "0.00800000", "volume24h_btc": "0.00000000", "percent_change_24h": null } ], "ANC_BTC": [ {..... }

https://freiexchange.com/api/public/FRC
https://freiexchange.com/api/public/{coincode}

This will give you the data for last 24 hours

{"public":{"marketname":"FRC_BTC","marketid":"1","volume":"10886","average":"0.00000103","high":"0.00000106","low":"0.00000101","volume_btc":"0.01140657","last":"0.00000106"}}

Orderbook

https://freiexchange.com/api/orderbook/FRC
https://freiexchange.com/api/orderbook/{coincode}

This will give you the full orderbook for the coin you ask for

{"buy":[{"price":"0.00000101","amount":"10244.65346534"},{"price":"0.00000100","amount":"35533.38239654"},{"price":"0.00000075","amount":"57286.62958772"},{"price":"0.00000065","amount":"100000.00000000"},{"price":"0.00000055","amount":"100000.00000000"},{"price":"0.00000051","amount":"300000.00000000"},{"price":"0.00000042","amount":"19800.00000000"},{"price":"0.00000041","amount":"200000.00000000"},{"price":"0.00000035","amount":"200000.00000000"},{"price":"0.00000025","amount":"7994.00000000"},{"price":"0.00000021","amount":"50175.00000000"},{"price":"0.00000020","amount":"71312.50000000"},{"price":"0.00000018","amount":"19431.96666380"},{"price":"0.00000014","amount":"20000.00000000"},{"price":"0.00000013","amount":"40000.00000000"},{"price":"0.00000012","amount":"20000.00000000"},{"price":"0.00000008","amount":"10000.00000000"},{"price":"0.00000007","amount":"2500.00000000"},{"price":"0.00000006","amount":"7900.00000000"},{"price":"0.00000005","amount":"8500.00000000"},{"price":"0.00000002","amount":"150000.00000000"},{"price":"0.00000001","amount":"5600.00000000"}],"sell":[{"price":"0.00000109","amount":"3712.15639788"},{"price":"0.00000110","amount":"19651.00000000"},{"price":"0.00000114","amount":"38753.50625063"},{"price":"0.00000116","amount":"10998.12526000"},{"price":"0.00000120","amount":"17068.00000000"},{"price":"0.00000145","amount":"6500.00000000"},{"price":"0.00000150","amount":"40000.00000000"},{"price":"0.00000160","amount":"99993.70000000"},{"price":"0.00000170","amount":"60000.00000000"},{"price":"0.00000180","amount":"50000.00000000"},{"price":"0.00000200","amount":"50603.00000000"},{"price":"0.00000220","amount":"50000.00000000"},{"price":"0.00000250","amount":"50000.00000000"},{"price":"0.00000260","amount":"4522.07407407"},{"price":"0.00000272","amount":"58714.45535714"},{"price":"0.00000289","amount":"20792.38754326"},{"price":"0.00000298","amount":"19990.00000000"},{"price":"0.00000340","amount":"2017.45294119"},{"price":"0.00000358","amount":"5000.00000000"},{"price":"0.00000379","amount":"10000.00000000"},{"price":"0.00000380","amount":"10000.00000000"},{"price":"0.00000390","amount":"10000.00000000"},{"price":"0.00000399","amount":"10000.00000000"},{"price":"0.00000400","amount":"25000.00000000"},{"price":"0.00000410","amount":"25000.00000000"},{"price":"0.00000470","amount":"20000.00000000"},{"price":"0.00000474","amount":"10780.00000000"},{"price":"0.00000475","amount":"16355.32842106"},{"price":"0.00000489","amount":"60250.00000000"},{"price":"0.00000490","amount":"3072.64000000"},{"price":"0.00000499","amount":"40000.00000000"},{"price":"0.00000500","amount":"97444.09292167"},{"price":"0.00000550","amount":"21400.00000000"},{"price":"0.00000590","amount":"50000.00000000"},{"price":"0.00000599","amount":"10000.00000000"},{"price":"0.00000699","amount":"10000.00000000"},{"price":"0.00000799","amount":"10000.00000000"},{"price":"0.00000849","amount":"30711.00000000"},{"price":"0.00000899","amount":"10000.00000000"},{"price":"0.00000999","amount":"100000.00000000"},{"price":"0.00001200","amount":"27000.00000000"},{"price":"0.00001500","amount":"147.00000000"},{"price":"0.00003000","amount":"105425.27522236"},{"price":"0.00003690","amount":"369.00000000"},{"price":"0.00005400","amount":"120.00000000"},{"price":"0.00006900","amount":"300.00000000"},{"price":"0.00007200","amount":"180.00000000"},{"price":"0.00008420","amount":"535.00000000"},{"price":"0.00010200","amount":"1200.00000000"},{"price":"0.00010500","amount":"148.00000000"},{"price":"0.00014400","amount":"1440.00000000"},{"price":"0.00020000","amount":"71.00000000"},{"price":"0.00036900","amount":"369.00000000"},{"price":"0.00052000","amount":"520.00000000"},{"price":"0.00100000","amount":"400.00000000"},{"price":"0.00144000","amount":"1440.00000000"},{"price":"0.00369000","amount":"3690.00000000"},{"price":"0.02000000","amount":"1.00000000"},{"price":"0.10000000","amount":"100.00000000"},{"price":"1.00000000","amount":"132.00000000"}]}