test

package
v4.1.23 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeDummyCurrencyDir

func MakeDummyCurrencyDir(root string, withdata, withGaps bool) map[string]int

MakeDummyCurrencyDir makes dummy data directories for 3 symbols * 6 timeframes * 3 years (= 54 directories) and insert data. symbols: ["EURUSD", "USDJPY", "NZDUSD"] timeframes: ["1Min", "5Min", "15Min", "1H", "4H", "1D"] attribute group: OHLC years: [2000, 2001, 2002] returns: map[string]int key: absolute path to a data file for the bucket, value: how many dummy records are written

func MakeDummyStockDir

func MakeDummyStockDir(root string, withdata, withGaps bool) map[string]int

func ParseT

func ParseT(s string) time.Time

func WriteDummyData

func WriteDummyData(f *os.File, year, tf string, makeGap, isStock bool) (int, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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