Fixes the "Python int too large to convert to C long" issues seen in #5148, #5162, #5014, #4339
Link: https://github.com/hummingbot/hummingbot/pull/5148