domain

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2022 License: AGPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TV

type TV struct {
	IsTestNet    bool    `json:"is_test_net"`
	APIKey       string  `json:"api_key" binding:"required"`
	APISecretKey string  `json:"api_secret_key" binding:"required"`
	Order        TVOrder `json:"order"`
}

type TVOrder

type TVOrder struct {
	Type   string  `json:"type" binding:"required"`   // "Market" or "Limit"
	Symbol string  `json:"symbol" binding:"required"` // eg: BTCUSDT
	Side   string  `json:"side" binding:"required"`   // "Buy" or "Sell"
	Price  float64 `json:"price"`                     // Set 0 if order_type is Market
	QTY    float64 `json:"qty" binding:"required"`
	TP     float64 `json:"tp"`
	SL     float64 `json:"sl"`
}

Jump to

Keyboard shortcuts

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