order

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 BatchOrdersReq

type BatchOrdersReq struct {

	/**
	 * order list
	 */
	OrderList []SpotOrdersReq `json:"orderList"`
	/**
	 * Currency pair
	 */
	Symbol string `json:"symbol"`
}

*

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

type CancelBatchOrdersReq

type CancelBatchOrdersReq struct {

	/**
	 *  Order ids
	 */
	OrderIds []string `json:"orderIds"`
	/**
	 * Currency pair
	 */
	Symbol string `json:"symbol"`
}

*

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

type CancelOrderReq

type CancelOrderReq struct {
	/**
	 * Currency pair
	 */
	Symbol string `json:"symbol"`
	/**
	 * Order Id
	 */
	OrderId string `json:"orderId"`
}

*

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

type ChangeDepthReq

type ChangeDepthReq struct {
	SymbolId                 string `json:"symbolId"`
	BusinessLine             string `json:"businessLine"`
	SecondBusinessLine       string `json:"secondBusinessLine"`
	RequestTime              string `json:"requestTime"`
	CycleId                  string `json:"cycleId"`
	AskTolerateValue         string `json:"askTolerateValue"`
	AskNegativeTolerateValue string `json:"askNegativeTolerateValue"`
	BidTolerateValue         string `json:"bidTolerateValue"`
	BidNegativeTolerateValue string `json:"bidNegativeTolerateValue"`
	Asks                     string `json:"asks"`
	Bids                     string `json:"bids"`
}

type FillsReq

type FillsReq struct {
	/**
	 * Currency pair
	 */
	Symbol string `json:"symbol"`
	/**
	 * Order Id
	 */
	OrderId string `json:"orderId"`
	/**
	 * The orderId is passed in. The data before the orderId desc
	 */
	After string `json:"after"`
	/**
	 * Pass in the data after the orderId asc
	 */
	Before string `json:"before"`
	/**
	 * Number of returned results Default 100, maximum 500
	 */
	Limit string `json:"limit"`
}

*

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

type HistoryReq

type HistoryReq struct {
	/**
	 * The orderId is passed in. The data before the orderId desc
	 */
	After string `json:"after"`
	/**
	 * Pass in the data after the orderId asc
	 */
	Before string `json:"before"`
	/**
	 * Number of returned results Default 100, maximum 500
	 */
	Limit string `json:"limit"`
	/**
	 * Currency pair
	 */
	Symbol string `json:"symbol"`
}

*

  • @Author: bitget-sdk-team
  • @Date: 2022-09-30 10:46
  • @DES: Get historical delegation list request

type OpenOrdersReq

type OpenOrdersReq struct {

	/**
	 * Currency pair
	 */
	Symbol string `json:"symbol"`
}

*

  • @Author: bitget-sdk-team
  • @Date: 2022-09-30 10:46
  • @DES: Obtain orders that have not been closed or partially closed but not cancelled request

type OrderInfoReq

type OrderInfoReq struct {
	/**
	 * Currency pair
	 */
	Symbol string `json:"symbol"`
	/**
	 * Order Id
	 */
	OrderId string `json:"orderId"`
	/**
	 * Client Order Id
	 */
	ClientOrderId string `json:"clientOrderId"`
}

*

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

type OrdersReq

type OrdersReq struct {
	/**
	 * Currency pair
	 */
	Symbol string `json:"symbol"`
	/**
	 * Order direction
	 */
	Side string `json:"side"`
	/**
	 * Order type
	 */
	OrderType string `json:"orderType"`
	/**
	 * Order Control Type
	 */
	Force string `json:"force"`
	/**
	 * Entrusted price, only applicable to price limit order
	 */
	Price string `json:"price"`
	/**
	 * quantity
	 */
	Quantity string `json:"quantity"`
	/**
	 * Client order ID
	 */
	ClientOrderId string `json:"clientOrderId"`
}

*

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

type SpotOrdersReq

type SpotOrdersReq struct {
	/**
	 * Order direction
	 */
	Side string `json:"side"`
	/**
	 * Order type
	 */
	OrderType string `json:"orderType"`
	/**
	 * Order Control Type
	 */
	Force string `json:"force"`
	/**
	 * Entrusted price, only applicable to price limit order
	 */
	Price string `json:"price"`
	/**
	 * quantity
	 */
	Quantity string `json:"quantity"`
	/**
	 * Client order ID
	 */
	ClientOrderId string `json:"clientOrderId"`
}

Jump to

Keyboard shortcuts

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