ezyquant_execution.utils#

Functions

async_event_wait(event, timeout)

async_sleep_until(target_time[, event])

Same as sleep_until but for asyncio.

camel_to_snake(name)

match_tick_price(price, n_tick[, is_round_up])

Match price to tick price.

match_tick_price_buy(price, n_tick)

more slip = higher buy price = easier to buy return match_tick_price(price=price, n_tick=n_tick, is_round_up=True)

match_tick_price_sell(price, n_tick)

more slip = lower sell price = easier to sell return match_tick_price(price=price, n_tick=-n_tick, is_round_up=False)

round_100(value[, is_round_up])

Round float to nearest 100.

round_even(value[, is_round_up])

Round float to nearest even.

round_x(value, x[, is_round_up])

Round float to nearest x.

seconds_until(target_time)

Calculate the number of seconds remaining until the end time.

sleep_until(target_time[, event])

Sleep until the end time is reached.

time_to_datetime(time_of_day)

Convert a time of day to a datetime object by combining it with the current date.