ezyquant_execution.utils#
Functions
|
|
|
Same as sleep_until but for asyncio. |
|
|
|
Match price to tick price. |
|
more slip = higher buy price = easier to buy return match_tick_price(price=price, n_tick=n_tick, is_round_up=True) |
|
more slip = lower sell price = easier to sell return match_tick_price(price=price, n_tick=-n_tick, is_round_up=False) |
|
Round float to nearest 100. |
|
Round float to nearest even. |
|
Round float to nearest x. |
|
Calculate the number of seconds remaining until the end time. |
|
Sleep until the end time is reached. |
|
Convert a time of day to a datetime object by combining it with the current date. |