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)
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 string
json:"order_type"TimeInForce string
json:"time_in_force"Side string
json:"side"Symbol string
json:"symbol"Price float64
json:"price"Quantity int
json:"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)