|
|
@ -6,7 +6,7 @@ import { sleep, getPolygonApiKey } from './util.mjs';
|
|
|
|
|
|
|
|
|
|
|
|
const clickhouse = createClickhouseClient({username:'avraham', password:'buginoo'});
|
|
|
|
const clickhouse = createClickhouseClient({username:'avraham', password:'buginoo'});
|
|
|
|
|
|
|
|
|
|
|
|
const optionContractsTableName = "option_aggregates";
|
|
|
|
const optionContractsTableName = "option_contracts";
|
|
|
|
async function deleteClickhouseTable(){
|
|
|
|
async function deleteClickhouseTable(){
|
|
|
|
await clickhouse.command({
|
|
|
|
await clickhouse.command({
|
|
|
|
query: `DROP TABLE IF EXISTS ${optionContractsTableName}`,
|
|
|
|
query: `DROP TABLE IF EXISTS ${optionContractsTableName}`,
|
|
|
|