trading

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2022 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SimTradingHistory []SimTrading

Functions

func SimOrder

func SimOrder(signal string, price float64, tradeTime int64)

func Simulation

func Simulation(startTime, endTime time.Time)

func Trade

func Trade()

func TriggerTrade

func TriggerTrade(signal string)

Types

type SimTrading

type SimTrading struct {
	Operation string
	Price     float64
	Quantity  float64
	TradeTime time.Time
}

type Wallet

type Wallet struct {
	BaseQuantity  float64
	QuoteQuantity float64
}
var SimWallet Wallet

Jump to

Keyboard shortcuts

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