Regarding API , they have JSON based API which is free and more comprehensive Java based API which costed in the past 600 USD/Month , but now is available for free for qualified real accounts.
Also in the past I posted here in forum an example how to feed a data from MT4 server to Ninja via NTdirect.dll API, using an obsolete (but working) DDE. This example may be used connected to Oanda MT4, but it included only tick data acquisition, no order management. At least it worked for me in NT7 in Windows XP and later in Windows 8, I did not check it in Windows 10. I cannot support this code, I posted it to public domain, anybody can use this example as he/she wishes.
Comment