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: 1 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 {
			Time    string `json:"time,omitempty"`
			Type    string `json:"type,omitempty"`
			Points  string `json:"points,omitempty"`
			Percent string `json:"percent,omitempty"`
		} `json:"options,omitempty"`
		Strategy string `json:"strategy"`
	} `json:"strategy_list"`
	MaxActiveDeals              int           `json:"max_active_deals"`
	ActiveDealsCount            int           `json:"active_deals_count"`
	Deletable                   bool          `json:"deletable?"`
	CreatedAt                   time.Time     `json:"created_at"`
	UpdatedAt                   time.Time     `json:"updated_at"`
	TrailingEnabled             bool          `json:"trailing_enabled"`
	TslEnabled                  bool          `json:"tsl_enabled"`
	DealStartDelaySeconds       int           `json:"deal_start_delay_seconds"`
	StopLossTimeoutEnabled      bool          `json:"stop_loss_timeout_enabled"`
	StopLossTimeoutInSeconds    int           `json:"stop_loss_timeout_in_seconds"`
	DisableAfterDealsCount      int           `json:"disable_after_deals_count"`
	DealsCounter                int           `json:"deals_counter"`
	AllowedDealsOnSamePair      int           `json:"allowed_deals_on_same_pair"`
	EasyFormSupported           bool          `json:"easy_form_supported"`
	CloseDealsTimeout           int           `json:"close_deals_timeout"`
	URLSecret                   string        `json:"url_secret"`
	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"`
	Type                        string        `json:"type"`
	MartingaleVolumeCoefficient string        `json:"martingale_volume_coefficient"`
	MartingaleStepCoefficient   string        `json:"martingale_step_coefficient"`
	StopLossPercentage          string        `json:"stop_loss_percentage"`
	Cooldown                    string        `json:"cooldown"`
	BtcPriceLimit               string        `json:"btc_price_limit"`
	Strategy                    string        `json:"strategy"`
	MinVolumeBtc24H             string        `json:"min_volume_btc_24h"`
	ProfitCurrency              string        `json:"profit_currency"`
	MinPrice                    string        `json:"min_price"`
	MaxPrice                    string        `json:"max_price"`
	StopLossType                string        `json:"stop_loss_type"`
	SafetyOrderVolumeType       string        `json:"safety_order_volume_type"`
	BaseOrderVolumeType         string        `json:"base_order_volume_type"`
	AccountName                 string        `json:"account_name"`
	TrailingDeviation           string        `json:"trailing_deviation"`
	FinishedDealsProfitUsd      string        `json:"finished_deals_profit_usd"`
	FinishedDealsCount          string        `json:"finished_deals_count"`
	LeverageType                string        `json:"leverage_type"`
	LeverageCustomValue         string        `json:"leverage_custom_value"`
	StartOrderType              string        `json:"start_order_type"`
	ActiveDealsUsdProfit        string        `json:"active_deals_usd_profit"`
	ActiveDeals                 []interface{} `json:"active_deals"`
}

Bot is the data structure of a Bot payload from the 3commas api

type Exchange

type Exchange struct {
	ID                             int         `json:"id"`
	AutoBalancePeriod              int         `json:"auto_balance_period"`
	AutoBalancePortfolioID         interface{} `json:"auto_balance_portfolio_id"`
	AutoBalanceCurrencyChangeLimit interface{} `json:"auto_balance_currency_change_limit"`
	AutobalanceEnabled             bool        `json:"autobalance_enabled"`
	HedgeModeAvailable             bool        `json:"hedge_mode_available"`
	HedgeModeEnabled               bool        `json:"hedge_mode_enabled"`
	IsLocked                       bool        `json:"is_locked"`
	SmartTradingSupported          bool        `json:"smart_trading_supported"`
	SmartSellingSupported          bool        `json:"smart_selling_supported"`
	AvailableForTrading            struct {
	} `json:"available_for_trading"`
	StatsSupported          bool        `json:"stats_supported"`
	TradingSupported        bool        `json:"trading_supported"`
	MarketBuySupported      bool        `json:"market_buy_supported"`
	MarketSellSupported     bool        `json:"market_sell_supported"`
	ConditionalBuySupported bool        `json:"conditional_buy_supported"`
	BotsAllowed             bool        `json:"bots_allowed"`
	BotsTtpAllowed          bool        `json:"bots_ttp_allowed"`
	BotsTslAllowed          bool        `json:"bots_tsl_allowed"`
	GordonBotsAvailable     bool        `json:"gordon_bots_available"`
	MultiBotsAllowed        bool        `json:"multi_bots_allowed"`
	CreatedAt               time.Time   `json:"created_at"`
	UpdatedAt               time.Time   `json:"updated_at"`
	LastAutoBalance         interface{} `json:"last_auto_balance"`
	FastConvertAvailable    bool        `json:"fast_convert_available"`
	GridBotsAllowed         bool        `json:"grid_bots_allowed"`
	APIKeyInvalid           bool        `json:"api_key_invalid"`
	NomicsID                string      `json:"nomics_id"`
	MarketIcon              string      `json:"market_icon"`
	DepositEnabled          bool        `json:"deposit_enabled"`
	SupportedMarketTypes    []string    `json:"supported_market_types"`
	APIKey                  string      `json:"api_key"`
	Name                    string      `json:"name"`
	AutoBalanceMethod       interface{} `json:"auto_balance_method"`
	AutoBalanceError        interface{} `json:"auto_balance_error"`
	CustomerID              interface{} `json:"customer_id"`
	SubaccountName          interface{} `json:"subaccount_name"`
	LockReason              interface{} `json:"lock_reason"`
	BtcAmount               string      `json:"btc_amount"`
	UsdAmount               string      `json:"usd_amount"`
	DayProfitBtc            string      `json:"day_profit_btc"`
	DayProfitUsd            string      `json:"day_profit_usd"`
	DayProfitBtcPercentage  string      `json:"day_profit_btc_percentage"`
	DayProfitUsdPercentage  string      `json:"day_profit_usd_percentage"`
	BtcProfit               string      `json:"btc_profit"`
	UsdProfit               string      `json:"usd_profit"`
	UsdProfitPercentage     string      `json:"usd_profit_percentage"`
	BtcProfitPercentage     string      `json:"btc_profit_percentage"`
	TotalBtcProfit          string      `json:"total_btc_profit"`
	TotalUsdProfit          string      `json:"total_usd_profit"`
	PrettyDisplayType       string      `json:"pretty_display_type"`
	ExchangeName            string      `json:"exchange_name"`
	MarketCode              string      `json:"market_code"`
}

Exchange is the return payload of an API call to get exchange info

Jump to

Keyboard shortcuts

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