notify

package
v0.0.0-...-599eaa3 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2021 License: Apache-2.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 SubAccountsResponse

type SubAccountsResponse struct {
	Op string `json:"op"`

	Topic string `json:"topic"`

	Ts int64 `json:"ts"`

	Uid string `json:"uid"`

	EventSender string `json:"event"`

	Data []struct {
		Symbol string `json:"symbol"`

		ContractCode string `json:"contract_code"`

		MarginAsset string `json:"margin_asset"`

		MarginBalance float32 `json:"margin_balance"`

		MarginStatic float32 `json:"margin_static"`

		MarginPosition float32 `json:"margin_position"`

		MarginFrozen float32 `json:"margin_frozen"`

		MarginAvailable float32 `json:"margin_available"`

		ProfitReal float32 `json:"profit_real"`

		ProfitUnreal float32 `json:"profit_unreal"`

		WithdrawAvailable float32 `json:"withdraw_available"`

		RiskRate float32 `json:"risk_rate,omitempty"`

		LiquidationPrice float32 `json:"liquidation_price,omitempty"`

		LeverRate float32 `json:"lever_rate"`

		AdjustFactor float32 `json:"adjust_factor"`

		MarginAccount string `json:"margin_account"`

		MarginMode string `json:"margin_mode"`
	} `json:"data"`
}

type SubContractInfoResponse

type SubContractInfoResponse struct {
	Op string `json:"op"`

	Topic string `json:"topic"`

	Ts int64 `json:"ts"`

	EventSender string `json:"event"`

	Data []struct {
		Symbol string `json:"symbol"`

		ContractCode string `json:"contract_code"`

		ContractSize float32 `json:"contract_size"`

		PriceTick float32 `json:"price_tick"`

		SettlementDate string `json:"settlement_date"`

		CreateDate string `json:"create_date"`

		ContractStatus int `json:"contract_status"`
	} `json:"data"`
}

type SubFundingRateResponse

type SubFundingRateResponse struct {
	Op string `json:"op"`

	Topic string `json:"topic"`

	Ts int64 `json:"ts"`

	Data []struct {
		Symbol string `json:"symbol"`

		ContractCode string `json:"contract_code"`

		FeeAsset string `json:"fee_asset"`

		FundingTime string `json:"funding_time"`

		FundingRate string `json:"funding_rate"`

		EstimatedRate string `json:"estimated_rate"`

		SettlementTime string `json:"settlement_time"`
	} `json:"data"`
}

type SubLiquidationOrdersResponse

type SubLiquidationOrdersResponse struct {
	Op string `json:"op"`

	Topic string `json:"topic"`

	Ts int64 `json:"ts"`

	Data []struct {
		Symbol string `json:"symbol"`

		ContractCode string `json:"contract_code"`

		Direction string `json:"direction"`

		Offset string `json:"offset"`

		Volume float32 `json:"volume"`

		Price float32 `json:"price"`

		CreatedAt int64 `json:"created_at"`
	} `json:"data"`
}

type SubOrdersResponse

type SubOrdersResponse struct {
	Op string `json:"op"`

	Topic string `json:"topic"`

	Ts int64 `json:"ts"`

	Uid string `json:"uid"`

	Symbol string `json:"symbol"`

	ContractCode string `json:"contract_code"`

	Volume float32 `json:"volume"`

	Price float32 `json:"price"`

	OrderPriceType string `json:"order_price_type"`

	Direction string `json:"direction"`

	Offset string `json:"offset"`

	Status int `json:"status"`

	LeverRate int `json:"lever_rate"`

	OrderId int64 `json:"order_id"`

	OrderIdStr string `json:"order_id_str"`

	ClientOrderId int64 `json:"client_order_id,omitempty"`

	OrderSource string `json:"order_source"`

	OrderType int `json:"order_type"`

	CreatedAt int64 `json:"created_at"`

	TradeVolume float32 `json:"trade_volume"`

	TradeTurnover float32 `json:"trade_turnover"`

	Fee float32 `json:"fee"`

	TradeAvgPrice float32 `json:"trade_avg_price"`

	MarginAsset string `json:"margin_asset"`

	MarginFrozen float32 `json:"margin_frozen"`

	Profit float32 `json:"profit"`

	LiquidationType float32 `json:"liquidation_type"`

	CanceledAt int64 `json:"canceled_at"`

	FeeAsset string `json:"fee_asset"`

	MarginAccount string `json:"margin_account"`

	MarginMode string `json:"margin_mode"`

	IsTpsl int `json:"is_tpsl"`

	RealProfit float32 `json:"real_profit"`

	Trade []struct {
		Id string `json:"id"`

		TradeId int64 `json:"trade_id"`

		TradeVolume float32 `json:"trade_volume"`

		TradePrice float32 `json:"trade_price"`

		TradeFee float32 `json:"trade_fee"`

		TradeTurnover float32 `json:"trade_turnover"`

		CreatedAt int64 `json:"created_at"`

		Role string `json:"role"`

		FeeAsset string `json:"fee_asset"`

		Profit float32 `json:"profit"`

		RealProfit float32 `json:"real_profit"`
	} `json:"trade"`
}

type SubPositionsResponse

type SubPositionsResponse struct {
	Op string `json:"op"`

	Topic string `json:"topic"`

	Ts int64 `json:"ts"`

	Uid string `json:"uid"`

	EventSender string `json:"event"`

	Data []struct {
		Symbol string `json:"symbol"`

		ContractCode string `json:"contract_code"`

		Volume float32 `json:"volume"`

		Available float32 `json:"available"`

		Frozen float32 `json:"frozen"`

		CostOpen float32 `json:"cost_open"`

		CostHold float32 `json:"cost_hold"`

		ProfitUnreal float32 `json:"profit_unreal"`

		ProfitRate float32 `json:"profit_rate"`

		Profit float32 `json:"profit"`

		PositionMargin float32 `json:"position_margin"`

		LeverRate int `json:"lever_rate"`

		Direction string `json:"direction"`

		LastPrice float32 `json:"last_price"`

		MarginAsset string `json:"margin_asset"`

		MarginAccount string `json:"margin_account"`

		MarginMode string `json:"margin_mode"`
	} `json:"data"`
}

type SubTriggerOrderResponse

type SubTriggerOrderResponse struct {
	Op string `json:"op"`

	Topic string `json:"topic"`

	Ts int64 `json:"ts"`

	Uid string `json:"uid"`

	EventSender string `json:"event"`

	Data []struct {
		Symbol string `json:"symbol"`

		ContractCode string `json:"contract_code"`

		TriggerType string `json:"trigger_type"`

		Volume float32 `json:"volume"`

		OrderType int `json:"order_type"`

		Direction string `json:"direction"`

		Offset string `json:"offset"`

		LeverRate int `json:"lever_rate"`

		OrderId int64 `json:"order_id"`

		OrderIdStr string `json:"order_id_str"`

		RelationOrderId string `json:"relation_order_id"`

		OrderPriceType string `json:"order_price_type"`

		Status int `json:"status"`

		OrderSource string `json:"order_source"`

		TriggerPrice float32 `json:"trigger_price"`

		TriggeredPrice float32 `json:"triggered_price,omitempty"`

		OrderPrice float32 `json:"order_price"`

		CreatedAt int64 `json:"created_at"`

		TriggeredAt int64 `json:"triggered_at,omitempty"`

		OrderInsertAt int64 `json:"order_insert_at"`

		CanceledAt int64 `json:"canceled_at,omitempty"`

		FailCode int `json:"fail_code,omitempty"`

		FailReason string `json:"fail_reason,omitempty"`
	} `json:"data"`
}

Jump to

Keyboard shortcuts

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