Forex & exchange

updated

The /forex section of the Api Textbox allows you to obtain the exchange rates in different currencies and to carry out exchange operations to obtain a value synchronized to Textbox.

The node:

https://api.textbox.live/forex

Exchange rate

Query by GET to get all the data:

api.get('/forex', log);

Price exchange

Perform operations by POST:

api.post('/forex', { action:'convert', value:{ EUR:12.5 }, currency:'ILS', lng:'fr' }, log);

who will answer:

{ "value": { "EUR": 12.5 }, "currency": { "code": "ILS", "EUR": 4.2135, "USD": 3.678306, "name": "Israeli new sheqels", "decimal": 2, "significant": 0.5, "relevant": "USD", "symbol": "₪" }, "locale": "français", "change": { "value": 52.66875, "display": "52,67 ₪" } }