Documentation ¶
Index ¶
- Constants
- type AssetPostgres
- func (db *AssetPostgres) Delete(ctx context.Context, symbol string) error
- func (db *AssetPostgres) Get(ctx context.Context, symbol string) (*storage.Asset, error)
- func (db *AssetPostgres) List(ctx context.Context) ([]*storage.Asset, error)
- func (db *AssetPostgres) Store(ctx context.Context, i *storage.Asset) error
- type OHLCPostgres
- type OrderPostgres
- type PositionPostgres
Constants ¶
View Source
const AssetTable = `CREATE TABLE IF NOT EXISTS asset (
symbol text primary key,
name text,
title text,
asset_type text
);
`
View Source
const OHLCTable = `` /* 184-byte string literal not displayed */
View Source
const OrderTable = `` /* 197-byte string literal not displayed */
View Source
const PositionTable = `` /* 207-byte string literal not displayed */
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AssetPostgres ¶
func (*AssetPostgres) Delete ¶
func (db *AssetPostgres) Delete(ctx context.Context, symbol string) error
Delete Delete asset
type OHLCPostgres ¶
type OrderPostgres ¶
type PositionPostgres ¶
Click to show internal directories.
Click to hide internal directories.