kelpdb

package
v1.9.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 7, 2020 License: Apache-2.0 Imports: 0 Imported by: 8

Documentation

Index

Constants

View Source
const SqlMarketsInsertTemplate = "INSERT INTO markets (market_id, exchange_name, base, quote) VALUES ('%s', '%s', '%s', '%s')"
insert statements

SqlMarketsInsertTemplate inserts into the markets table

View Source
const SqlMarketsTableCreate = "" /* 133-byte string literal not displayed */

tables

View Source
const SqlQueryDailyValuesTemplate = "" /* 187-byte string literal not displayed */

SqlQueryDailyValuesTemplate queries the trades table to get the values for a given day

View Source
const SqlQueryMarketsById = "SELECT market_id, exchange_name, base, quote FROM markets WHERE market_id = $1 LIMIT 1"
queries

SqlQueryMarketsById queries the markets table

View Source
const SqlTradesIndexCreate = "CREATE INDEX IF NOT EXISTS date ON trades (market_id, date_utc)"

indexes

View Source
const SqlTradesIndexCreate2 = "CREATE INDEX IF NOT EXISTS trades_mdd ON trades (market_id, DATE(date_utc), date_utc)"
View Source
const SqlTradesIndexDrop = "DROP INDEX IF EXISTS date"
View Source
const SqlTradesInsertTemplate = "" /* 173-byte string literal not displayed */

SqlTradesInsertTemplate inserts into the trades table

View Source
const SqlTradesTableCreate = "" /* 350-byte string literal not displayed */

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL