I have been working with the API for a while now in Python - but had come to have a few questions (and possible feedback) about its implementation. So any clarification would be very helpful to myself, possibly others looking into getting into the API, and might reduce frustration when reading the API.
One question I have is in regards to the request methods built around it. I initially only gave the API doc a glance over when first starting to know the basics of what I needed - however further reading and more implementation done I realized the API is only post/get requests - even for something like modifying or deleting orders. Is there a reason for this instead of using other (more appropriate, in my opinion) request methods such as “put”, “delete”, “patch”, etc? I understand this would mean possibly changing the API to include things such order ID in the URL, for instance, to do things with put and delete - but I think this would clean up the API. Things like placing and order could have the account ID placed in the URL rather than inside the request body itself, for instance. Same with getting accounts, and a variety of other endpoints that could possibly be reduced down.
Another question I have is in regards to the domain endpoints. The separation of demo and live account accessibility through their respective endpoints - for instance - I can understand the separation, but it seems like it would be easier to write around if they were combined. Is there a reason for separation? Also, what is the demo-md domain for? I was unable to place orders and get account details (live and demo) from the md websocket and HTTP requests. So assuming it purely is only for “market data of demo account” - is there a reason to have/need/use both?
Finally, and this one is more for myself - but could very much help others - I haven’t found anything specific in the API docs yet about getting saved indicators. Is this implemented, such that I could get SMA, for instance? Or are these things we have to calculate on our own(like P/L) by getting older charts and doing the math?
Thanks for answering any or all questions,
(Quick note: I’ve posted all these questions in one topic because I wasn’t sure if I should make three separate topics back-to-back)