winksaville / rust-binance-cli

Automatically sell all assets owned by the user on binance.us except USD, USDT plus a minimum of BNB is kept.
Apache License 2.0
2 stars 6 forks source link

Better error handling in binance_new_order_or_test #4

Open winksaville opened 3 years ago

winksaville commented 3 years ago

There are some TODO's in binance_new_order_or_test. When we have a response_status of 200 we should "never" return an error. Specifically we need to revert to dec!(0) on convert problems. Also, we should decide what to do if problem log_order_response a message. For both we should probably "send a message to the programmer"!