Closed rsgabriel closed 5 years ago
I submitted
{{"symbol":"AAPL","qty":100,"side":"buy","type":"market","time_in_force":"gtc","limit_price":0.0,"stop_price":0.0,"client_order_id":"11","extended_hours":false}}
response:
| ReasonPhrase | "Unprocessable Entity" | string | StatusCode | 422 | System.Net.HttpStatusCode
error:
| Code | 40010001 | int | Message | "limit price must be > 0" | string
Adding a value other than 0:
RestClientErrorException: 'market orders require no stop or limit price'
I am not sure how to proceed.
I have resolved this issue by using null instead of 0 for the limit/stop price
I submitted
{{"symbol":"AAPL","qty":100,"side":"buy","type":"market","time_in_force":"gtc","limit_price":0.0,"stop_price":0.0,"client_order_id":"11","extended_hours":false}}
response:
| ReasonPhrase | "Unprocessable Entity" | string | StatusCode | 422 | System.Net.HttpStatusCode
error:
| Code | 40010001 | int | Message | "limit price must be > 0" | string
Adding a value other than 0:
RestClientErrorException: 'market orders require no stop or limit price'
I am not sure how to proceed.