Documentation
¶
Index ¶
Constants ¶
const SqlMarketsInsertTemplate = "INSERT INTO markets (market_id, exchange_name, base, quote) VALUES ('%s', '%s', '%s', '%s')"
insert statements
SqlMarketsInsertTemplate inserts into the markets table
const SqlMarketsTableCreate = "" /* 133-byte string literal not displayed */
tables
const SqlQueryDailyValuesTemplate = "" /* 187-byte string literal not displayed */
SqlQueryDailyValuesTemplate queries the trades table to get the values for a given day
const SqlQueryMarketsById = "SELECT market_id, exchange_name, base, quote FROM markets WHERE market_id = $1 LIMIT 1"
queries
SqlQueryMarketsById queries the markets table
const SqlTradesIndexCreate = "CREATE INDEX IF NOT EXISTS date ON trades (market_id, date_utc)"
indexes
const SqlTradesIndexCreate2 = "CREATE INDEX IF NOT EXISTS trades_mdd ON trades (market_id, DATE(date_utc), date_utc)"
const SqlTradesIndexDrop = "DROP INDEX IF EXISTS date"
const SqlTradesInsertTemplate = "" /* 173-byte string literal not displayed */
SqlTradesInsertTemplate inserts into the trades table
const SqlTradesTableCreate = "" /* 350-byte string literal not displayed */
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
This section is empty.