oanda / v20-javascript

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

How to get margin requirements of an instrument? #6

Open nbozeman opened 5 years ago

nbozeman commented 5 years ago

Each instrument has a margin requirement, e.g. 50:1 or 2%. However, these vary from instrument to instrument based on NFA rules for each currency pair. You can see what that looks like here: https://www.oanda.com/resources/legal/united-states/legal/margin-rates.

Currently, there is no way to retrieve this information programatically to determine the maximum trade size possible (e.g., 36,049). The Oanda mobile and webpp do provide this in real time, however. So is there a way to do this through the rest api?

(Thank you in advance!)

mfeldt commented 2 years ago

No response yet?