HI Does anyone know why  my algo keeps getting Inufficient Buying Power to Complete Order ? As my title says it buys like 50 ETH but my setholdings is only for like %10 of my portfolio to be allocated, which would be about $1500 USD… For every coin, the conversion is different. 
WHen you trade setholdings with Forex, each currency pair is correctly calculated to be at whatever allocation but this doesn't seem to be the case with crypto coins. Some coins are 10 cents others like BTC are 50,000 a “share”. Is this a known bug and i'm late to the party as usual or am i doing something wrong? 
Can someone help look at my def onorderevent at the bottom of the backtest code to help me create a logic that:
when orderStatus.Invalid, it sends a new duplicate order (because you can't resend market orders on coinbase), 
new order with a10% less quantity,

it will repeat this reduction of quantity until OrderStatus.Filled for that symbol. 
THanks!