New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bad string type in sold-assets.json #4
Comments
This is a sold-assets.json [
{
"symbol": "XRPUSDT",
"quantity": 23.4,
"orderId": 8106,
"bought_at": 0.98,
"TP_Threshold": 1.113,
"SL_Threshold": 1.0185,
"purchase_time": "5/19/2021, 1:54:53 PM",
"updated_at": "5/19/2021, 1:57:40 PM",
"sell_time": "5/19/2021, 1:58:43 PM",
"sell_at": 1.01,
"profit": "3.06%"
}
] The sell_at key is numeric by default, don't really know why you got it as string type. Anyway I coerced its type just to make sure. |
Good point on the profit percentage. Easy enough to work around. The sell_at being numeric I'll confirm once I fire up the script again today. |
The text was updated successfully, but these errors were encountered: