Skip to content

Practice API Documentation

Gurkan Demir edited this page May 8, 2019 · 23 revisions

Practice-API Documentation

Practice-Api has three functionalities fetching real-time Forex data , fetching latest economic events and Login/Sign up.

Foreign Exchange Rates

Practice-Api provides a simple REST API with real-time exchange rates for 168 world currencies, delivering currency pairs in universally usable JSON format. Users may access real-time exchange rates using the Practice-API's t-equipments endpoint.Base currency is USD. Exchange rate data is refreshed every 60 minutes in this version.

Example API Request:

http://api.dev.arkenstone.ml/t-equipments

Example API Response:

{ "USDAUD": 1.278342, "USDEUR": 1.278342, "USDGBP": 0.908019, "USDPLN": 3.731504 ... }

RealTime Single Foreign Exchange Rate

This endpoint returns the realtime exchange rate for any pair of digital currency (e.g., Bitcoin) or physical currency (e.g., USD) at the moment.

Parameters

Parameters distinguished by "-" sign and first symbol is from_currency and the second symbol is to_currency parameter. Parameters shall be given as their forex codes.

  • Required from_currency : The currency you would like to get the exchange rate for. It can either be a physical currency or digital/crypto currency.
  • Required to_currency : The destination currency for the exchange rate. It can either be a physical currency or digital/crypto currency.

Example API Request:

http://api.dev.arkenstone.ml/t-equipments/USD-BTC

Example API Response:

{"rate":"USD/BTC","value":"0.00017213"}

Supported Currency List

A full list of supported currencies can be accessed through the link

Events

Practice-Api provides a simple REST API by delivering economic events as array in universally usable JSON format. Users may access latest events using the Practice-API's events/list endpoint.

Example API Request:

http://api.dev.arkenstone.ml/events/list

Example API Response:

[ {"date":"2019-05-05T04:15:00",
"country":"Egypt",
"eventName":"Emirates NBD PMI",
"signifanceLevel":1,
"actual":"50.8",
"previous":"49.9",
"forecast":""} ]

Sign-Up

Practise-Api provides their users to register to our system.

Example API Request:

POST to http://api.dev.arkenstone.ml/auth/signup

Request.body { name: 'ExampleName', surname: 'ExampleSurname', email: '[email protected]', password: 'examplepassword', location: 'ExampleLocation', isTrader: false }

Example API Response:

{ name: 'ExampleName', surname: 'ExampleSurname', email: '[email protected]', location: 'ExampleLocation', isTrader: false
}

Sign-Up

Practise-Api provides their users to login to our system.

Example API Request:

POST to http://api.dev.arkenstone.ml/auth/login

Request.body { email: '[email protected]', password: 'examplepassword', }

Example API Response:

{ name: 'ExampleName', surname: 'ExampleSurname', email: '[email protected]', location: 'ExampleLocation', isTrader: false
}

Clone this wiki locally