docs-newton / newton-api-docs

Documentation for the Newton API
0 stars 1 forks source link

New order is not specified in the documentation #4

Open dhiaayachi opened 3 years ago

dhiaayachi commented 3 years ago

Hi, I'm trying to write a go library wrapper around newton API. I succeeded implementing all of the api calls (public and private) except the "/order/new" call. This call is lacking specification in the documentation (specifically the content of the body) I implemented the following call based on some insight from reddit:

type NewOrderReq struct { OrderType stringjson:"order_type" TimeInForce stringjson:"time_in_force" Side stringjson:"side" Symbol stringjson:"symbol" Price float64json:"price" Quantity intjson:"quantity" }

and I'm getting the following error: 400 (Bad request) {"errors":["Problem creating the order."]}

Please update the documentation so I can finish the library and share it (I intent to open source it)

zerozeroinfinity commented 3 years ago

Any update on this? I am also facing the same issue, all endpoints are functional the new/order only is not working for me.