bugfix
This commit is contained in:
17
testy/testRushHours.py
Normal file
17
testy/testRushHours.py
Normal file
@ -0,0 +1,17 @@
|
||||
from v2realbot.utils.utils import is_open_rush, zoneNY
|
||||
from datetime import datetime, date, timedelta, time
|
||||
|
||||
ted = datetime.now().astimezone(zoneNY)
|
||||
|
||||
ted = datetime(year=2023, month=5, day=9, hour=9, minute=35, tzinfo=zoneNY)
|
||||
print(ted)
|
||||
|
||||
rush = is_open_rush(ted, 30)
|
||||
|
||||
print(rush)
|
||||
business_hours = {
|
||||
"from": time(hour=9, minute=30),
|
||||
"to": time(hour=16, minute=0)
|
||||
}
|
||||
rushtime = (datetime.combine(date.today(), business_hours["from"]) + timedelta(minutes=30)).time()
|
||||
print(rushtime)
|
||||
@ -337,7 +337,9 @@ $(document).ready(function () {
|
||||
row = stratinRecords.row('.selected').data();
|
||||
window.$('#runModal').modal('show');
|
||||
$('#bt_from').val(localStorage.getItem("bt_from"));
|
||||
//console.log(localStorage.getItem("bt_from"))
|
||||
$('#bt_to').val(localStorage.getItem("bt_to"));
|
||||
//console.log(localStorage.getItem("bt_to"))
|
||||
$('#mode').val(localStorage.getItem("mode"));
|
||||
$('#account').val(localStorage.getItem("account"));
|
||||
$('#debug').val(localStorage.getItem("debug"));
|
||||
|
||||
@ -1,9 +1,6 @@
|
||||
|
||||
function populate_real_time_chart() {
|
||||
if (chart !== null) {
|
||||
chart.remove();
|
||||
clear_status_header();
|
||||
}
|
||||
cleanup_chart()
|
||||
|
||||
initialize_chart()
|
||||
intitialize_candles()
|
||||
|
||||
@ -86,7 +86,7 @@ function cleanup_chart() {
|
||||
avgBuyLine = null
|
||||
volumeSeries = null
|
||||
vwapSeries = null
|
||||
if (toolTip !== null) {
|
||||
if (toolTip) {
|
||||
toolTip.style.display = 'none';
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user