candles based alerts
This commit is contained in:
parent
bec3b7de5b
commit
999f675da9
11 changed files with 316 additions and 15 deletions
|
|
@ -34,3 +34,10 @@ insert into instrument (base_currency_id, quoted_currency_id) values
|
|||
((select id from currency where symbol = 'BTC'), (select id from currency where symbol = 'USDT')),
|
||||
((select id from currency where symbol = 'ETH'), (select id from currency where symbol = 'USDT')),
|
||||
((select id from currency where symbol = 'SOL'), (select id from currency where symbol = 'USDT'));
|
||||
|
||||
create table if not exists alerter_state (
|
||||
last_alert_check timestamptz
|
||||
);
|
||||
|
||||
-- single row; UPDATE always succeeds without upsert logic
|
||||
insert into alerter_state(last_alert_check) values (null);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue