plan

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2023 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 CancelAllPlanReq

type CancelAllPlanReq struct {
	/**
	 * Plan type
	 */
	PlanType string `json:"planType"`

	ProductType string `json:"productType"`
}

*

  • @Author: bitget-sdk-team
  • @Date: 2022-09-30 10:46
  • @DES: cancel plan request

type CancelPlanBySymbolReq

type CancelPlanBySymbolReq struct {
	/**
	 * Currency pair
	 */
	Symbol string `json:"symbol"`
	/**
	 * Plan type
	 */
	PlanType string `json:"planType"`
}

type CancelPlanReq

type CancelPlanReq struct {
	/**
	 * Currency pair
	 */
	Symbol string `json:"symbol"`
	/**
	 * Deposit currency
	 */
	MarginCoin string `json:"marginCoin"`
	/**
	 * Order Id
	 */
	OrderId string `json:"orderId"`
	/**
	 * Plan type
	 */
	PlanType string `json:"planType"`
}

*

  • @Author: bitget-sdk-team
  • @Date: 2022-09-30 10:46
  • @DES: cancel plan request

type ModifyPlanPresetReq

type ModifyPlanPresetReq struct {
	/**
	 * Currency pair
	 */
	Symbol string `json:"symbol"`
	/**
	 * Deposit currency
	 */
	MarginCoin string `json:"marginCoin"`
	/**
	 * If the profit stop price is blank, cancel the profit stop
	 */
	PresetTakeProfitPrice string `json:"presetTakeProfitPrice"`
	/**
	 * If the stop loss price is blank, cancel the stop loss
	 */
	PresetStopLossPrice string `json:"presetStopLossPrice"`
	/**
	 * order id
	 */
	OrderId string `json:"orderId"`
	/**
	 * plan type
	 */
	PlanType string `json:"planType"`
}

*

  • @Author: bitget-sdk-team
  • @Date: 2022-09-30 10:46
  • @DES: modify plan request

type ModifyPlanReq

type ModifyPlanReq struct {
	/**
	 * Currency pair
	 */
	Symbol string `json:"symbol"`
	/**
	 * Deposit currency
	 */
	MarginCoin string `json:"marginCoin"`
	/**
	 * Planned entrusted order No
	 */
	OrderId string `json:"orderId"`
	/**
	 * Execution price
	 */
	ExecutePrice string `json:"executePrice"`
	/**
	 * Trigger Price
	 */
	TriggerPrice string `json:"triggerPrice"`
	/**
	 * Trigger Type
	 */
	TriggerType string `json:"triggerType"`
	/**
	 * Order Type
	 */
	OrderType string `json:"orderType"`
}

*

  • @Author: bitget-sdk-team
  • @Date: 2022-09-30 10:46
  • @DES: placePlan request

type ModifyTPSLPlanReq

type ModifyTPSLPlanReq struct {
	/**
	 * Currency pair
	 */
	Symbol string `json:"symbol"`
	/**
	 * Deposit currency
	 */
	MarginCoin string `json:"marginCoin"`
	/**
	 * Order id
	 */
	OrderId string `json:"orderId"`
	/**
	 * Trigger price
	 */
	TriggerPrice string `json:"triggerPrice"`
	/**
	 * plan type
	 */
	PlanType string `json:"planType"`
}

*

  • @Author: bitget-sdk-team
  • @Date: 2022-09-30 10:46
  • @DES: modify plan request

type PlacePlanReq

type PlacePlanReq struct {
	/**
	 * Currency pair
	 */
	Symbol string `json:"symbol"`
	/**
	 * Deposit currency
	 */
	MarginCoin string `json:"marginCoin"`
	/**
	 * Amount of currency placed
	 */
	Size string `json:"size"`
	/**
	 * Entrusted price
	 */
	ExecutePrice string `json:"executePrice"`
	/**
	 * Trigger Price
	 */
	TriggerPrice string `json:"triggerPrice"`
	/**
	 * Entrusting direction
	 */
	Side string `json:"side"`
	/**
	 * Transaction Type
	 */
	OrderType string `json:"orderType"`
	/**
	 * Trigger Type Transaction Price Trigger Flag Price Trigger
	 */
	TriggerType string `json:"triggerType"`
	/**
	 * Client ID
	 */
	ClientOid string `json:"clientOid"`
	/**
	 * Default stop profit price
	 */
	PresetTakeProfitPrice string `json:"presetTakeProfitPrice,omitempty"`
	/**
	 * Preset stop loss price
	 */
	PresetStopLossPrice string `json:"presetStopLossPrice,omitempty"`
}

*

  • @Author: bitget-sdk-team
  • @Date: 2022-09-30 10:46
  • @DES: placePlan request

type PlacePositionTPSLReq

type PlacePositionTPSLReq struct {
	/**
	 * Currency pair
	 */
	Symbol string `json:"symbol"`
	/**
	 * Deposit currency
	 */
	MarginCoin string `json:"marginCoin"`
	/**
	 * Plan type
	 */
	PlanType string `json:"planType"`
	/**
	 * Trigger price
	 */
	TriggerPrice string `json:"triggerPrice"`
	TriggerType  string `json:"triggerType"`
	/**
	 * Is this position long or short
	 */
	HoldSide string `json:"holdSide"`
}

type PlaceTPSLReq

type PlaceTPSLReq struct {
	/**
	 * Currency pair
	 */
	Symbol string `json:"symbol"`
	/**
	 * Deposit currency
	 */
	MarginCoin string `json:"marginCoin"`
	/**
	 * Plan type
	 */
	PlanType string `json:"planType"`
	/**
	 * Trigger price
	 */
	TriggerPrice string `json:"triggerPrice"`
	/**
	 * Is this position long or short
	 */
	HoldSide string `json:"holdSide"`
}

*

  • @Author: bitget-sdk-team
  • @Date: 2022-09-30 10:46
  • @DES: modify plan request

Jump to

Keyboard shortcuts

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