symbolTicker = ‘BNBBTC’
quantity = 100
prev_symbolPrice = 0
list_of_tickers = client.get_all_tickers()
for tick_2 in list_of_tickers:
if tick_2[“symbol”] == symbolTicker:
prev_symbolPrice = float(tick_2[“price”])
order = client.create_order(
symbol = symbolTicker,
side = ‘BUY’,
type = ‘STOP_LOSS_LIMIT’,
quantity = quantity,
price = round(prev_symbolPrice1.00001,4),
stopPrice = round(prev_symbolPrice1.00002,4),
timeInForce = ‘GTC’
)