model

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Id             string
	Active         bool
	LockedUntil    string
	Locked         bool
	CashAmount     float64
	CashReserved   float64
	CryptoAmount   float64
	CryptoReserved float64
	BuyOn          int
	SellOn         int
	Symbols        []string
}

type ClientSearchConfig

type ClientSearchConfig struct {
	Active        bool
	Locked        bool
	MinimumCash   float64
	MinimumCrypto float64
	Symbol        symbol.Symbol
	SellWeight    summary.Summary
	BuyWeight     summary.Summary
	Limit         int
	Offset        int
}

func NewClientSearchConfig added in v0.1.1

func NewClientSearchConfig() *ClientSearchConfig

type OperationRequest added in v0.1.1

type OperationRequest struct {
	ClientId  string `json:"client_id"`
	Operation string `json:"operation"`
	Symbol    string `json:"symbol"`
	StartTime string `json:"start_time"`
}

func NewOperationRequest added in v0.1.1

func NewOperationRequest(client Client, summary summary.Summary) *OperationRequest

Jump to

Keyboard shortcuts

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