oanda / v20-javascript

OANDA v20 bindings for Javascript
MIT License
66 stars 31 forks source link

Instrument financing missing #19

Open joaocosta opened 2 years ago

joaocosta commented 2 years ago

InstrumentFinancing is missing from the Instruments call, after this change, the below works:

ctx.account.instruments(account_id, { 'instruments': 'EUR_USD' }, response => {
    const instruments = response.body.instruments;
    console.log(instruments[0].financing.longRate);
});