I have tried to sell (market_order) in phyton with decimal. No luck.
Without decimals, it works.
Response with decimals:
{
"success": false,
"failure_reason": "UNKNOWN_FAILURE_REASON",
"order_id": "",
"error_response": {
"error": "INVALID_SIZE_PRECISION",
"message": "Too many decimals in order amount",
"error_details": "",
"preview_failure_reason": "PREVIEW_INVALID_SIZE_PRECISION"
},
"order_configuration": {
"market_market_ioc": {
"base_size": "47.532"
}
}
}
Response without decimals:
{
"success": true,
"failure_reason": "UNKNOWN_FAILURE_REASON",
"order_id": "bc45420b-caf7-491a-aa0f-58ec0589b1a5",
"success_response": {
"order_id": "bc45420b-caf7-491a-aa0f-58ec0589b1a5",
"product_id": "BAT-EUR",
"side": "SELL",
"client_order_id": "949266504"
},
"order_configuration": {
"market_market_ioc": {
"base_size": "10"
}
}
}
Example of my payload with decimals:
payload = json.dumps({
"client_order_id": str_order_id,
"product_id": "BAT-EUR",
"side": "SELL",
"order_configuration": {
"market_market_ioc": {
"base_size": "7.532"
}
}
})
I think, there are a lot of issues in advanced.
Is it possible to transfer the hole portfolio back and add to PRO?
Sorry, but this is not a game. It’s money.
Thx