dobjs

package
v0.0.0-...-695090a Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2022 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bot

type Bot struct {
	ID                      int      `json:"id"`
	AccountID               int      `json:"account_id"`
	IsEnabled               bool     `json:"is_enabled"`
	MaxSafetyOrders         int      `json:"max_safety_orders"`
	ActiveSafetyOrdersCount int      `json:"active_safety_orders_count"`
	Pairs                   []string `json:"pairs"`
	StrategyList            []struct {
		Options struct {
		} `json:"options"`
		Strategy string `json:"strategy"`
	} `json:"strategy_list"`
	Name                        string `json:"name"`
	TakeProfit                  string `json:"take_profit"`
	BaseOrderVolume             string `json:"base_order_volume"`
	SafetyOrderVolume           string `json:"safety_order_volume"`
	SafetyOrderStepPercentage   string `json:"safety_order_step_percentage"`
	TakeProfitType              string `json:"take_profit_type"`
	MartingaleVolumeCoefficient string `json:"martingale_volume_coefficient"`
	MartingaleStepCoefficient   string `json:"martingale_step_coefficient"`
}

Bot describes a bot from the 3commas api

type Deal

type Deal struct {
	ID                               int    `json:"id"`
	Type                             string `json:"type"`
	BotID                            int    `json:"bot_id"`
	CompletedSafetyOrdersCount       int    `json:"completed_safety_orders_count"`
	CompletedManualSafetyOrdersCount int    `json:"completed_manual_safety_orders_count"`
	Pair                             string `json:"pair"`
	Status                           string `json:"status"`
}

Deal describes a deal returned by the 3commas api

Jump to

Keyboard shortcuts

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