algoorder

package
v0.0.0-...-deaa051 Latest Latest
Warning

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

Go to latest
Published: May 18, 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 CancelOrdersRequest

type CancelOrdersRequest struct {
	ClientOrderIds []string `json:"clientOrderIds"`
}

type CancelOrdersResponse

type CancelOrdersResponse struct {
	Code    int    `json:"code"`
	Message string `json:"message"`
	Data    struct {
		Accepted []string `json:"accepted"`
		Rejected []string `json:"rejected"`
	}
}

type GetHistoryOrdersResponse

type GetHistoryOrdersResponse struct {
	Code    int    `json:"code"`
	Message string `json:"message"`
	Data    []struct {
		AccountId       int    `json:"accountId"`
		Source          string `json:"source"`
		ClientOrderId   string `json:"clientOrderId"`
		Symbol          string `json:"symbol"`
		OrderPrice      string `json:"orderPrice"`
		OrderSize       string `json:"orderSize"`
		OrderValue      string `json:"orderValue"`
		OrderSide       string `json:"orderSide"`
		TimeInForce     string `json:"timeInForce"`
		OrderType       string `json:"orderType"`
		StopPrice       string `json:"stopPrice"`
		TrailingRate    string `json:"trailingRate"`
		OrderOrigTime   int64  `json:"orderOrigTime"`
		LastActTime     int64  `json:"lastActTime"`
		OrderCreateTime int64  `json:"orderCreateTime"`
		OrderStatus     string `json:"orderStatus"`
		ErrCode         int    `json:"errCode"`
		ErrMessage      string `json:"errMessage"`
	}
	NextId int64 `json:"nextId"`
}

type GetOpenOrdersResponse

type GetOpenOrdersResponse struct {
	Code    int    `json:"code"`
	Message string `json:"message"`
	Data    []struct {
		AccountId     int    `json:"accountId"`
		Source        string `json:"source"`
		ClientOrderId string `json:"clientOrderId"`
		Symbol        string `json:"symbol"`
		OrderPrice    string `json:"orderPrice"`
		OrderSize     string `json:"orderSize"`
		OrderValue    string `json:"orderValue"`
		OrderSide     string `json:"orderSide"`
		TimeInForce   string `json:"timeInForce"`
		OrderType     string `json:"orderType"`
		StopPrice     string `json:"stopPrice"`
		TrailingRate  string `json:"trailingRate"`
		OrderOrigTime int64  `json:"orderOrigTime"`
		LastActTime   int64  `json:"lastActTime"`
		OrderStatus   string `json:"orderStatus"`
	}
	NextId int64 `json:"nextId"`
}

type GetSpecificOrderResponse

type GetSpecificOrderResponse struct {
	Code    int    `json:"code"`
	Message string `json:"message"`
	Data    *struct {
		AccountId       int    `json:"accountId"`
		Source          string `json:"source"`
		ClientOrderId   string `json:"clientOrderId"`
		OrderId         string `json:"orderId"`
		Symbol          string `json:"symbol"`
		OrderPrice      string `json:"orderPrice"`
		OrderSize       string `json:"orderSize"`
		OrderValue      string `json:"orderValue"`
		OrderSide       string `json:"orderSide"`
		TimeInForce     string `json:"timeInForce"`
		OrderType       string `json:"orderType"`
		StopPrice       string `json:"stopPrice"`
		TrailingRate    string `json:"trailingRate"`
		OrderOrigTime   int64  `json:"orderOrigTime"`
		LastActTime     int64  `json:"lastActTime"`
		OrderCreateTime int64  `json:"orderCreateTime"`
		OrderStatus     string `json:"orderStatus"`
		ErrCode         int    `json:"errCode"`
		ErrMessage      string `json:"errMessage"`
	}
}

type PlaceOrderRequest

type PlaceOrderRequest struct {
	AccountId     int    `json:"accountId"`
	Symbol        string `json:"symbol"`
	OrderPrice    string `json:"orderPrice"`
	OrderSide     string `json:"orderSide"`
	OrderSize     string `json:"orderSize"`
	OrderValue    string `json:"orderValue"`
	TimeInForce   string `json:"timeInForce"`
	OrderType     string `json:"orderType"`
	ClientOrderId string `json:"clientOrderId"`
	StopPrice     string `json:"stopPrice"`
	TrailingRate  string `json:"trailingRate"`
}

type PlaceOrderResponse

type PlaceOrderResponse struct {
	Code    int    `json:"code"`
	Message string `json:"message"`
	Data    struct {
		ClientOrderId string `json:"clientOrderId"`
	}
}

Jump to

Keyboard shortcuts

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