controller

package
v0.0.0-...-405fc14 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ConfigCache map[string]string
)

Functions

func CloseAllOrders

func CloseAllOrders(c *gin.Context)

func CreateOrder

func CreateOrder(c *gin.Context)

func GetConfig

func GetConfig(keyName string) (val string)

func GetOrders

func GetOrders(c *gin.Context)

func QueryBalance

func QueryBalance(c *gin.Context)

Types

type FormCreateOrder

type FormCreateOrder struct {
	Direction  string `form:"direction"`
	Quantity   string `form:"quantity"`
	StopLoss   string `form:"stop_loss"`
	TakeProfit string `form:"take_profit"`
}

Jump to

Keyboard shortcuts

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