We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9e898dd commit 5474684Copy full SHA for 5474684
demo/zitrader.py
@@ -177,6 +177,9 @@ def main(argv: List[str]):
177
)
178
if verbose:
179
print(f"Bid Size: {order_size}")
180
+ if order_size == 0:
181
+ print(f"Not submitting order of size: : {order_size}")
182
+ continue
183
184
limit_buy = shift.Order(
185
shift.Order.Type.LIMIT_BUY, stock_ticker, order_size, order_price
@@ -209,6 +212,9 @@ def main(argv: List[str]):
209
212
210
213
211
214
print(f"Ask Size: {order_size}")
215
216
217
218
219
limit_sell = shift.Order(
220
shift.Order.Type.LIMIT_SELL, stock_ticker, order_size, order_price
0 commit comments