cmd

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2026 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Version = "dev"

Functions

func Execute

func Execute()

func GetJSONMode

func GetJSONMode() bool

GetJSONMode returns whether JSON output mode is enabled.

Types

type InstrumentsResponse

type InstrumentsResponse struct {
	Instruments []api.InstrumentResponse `json:"instruments"`
}

InstrumentsResponse represents the API response for listing instruments.

type MultilegExpiration

type MultilegExpiration struct {
	TimeInForce string `json:"timeInForce"`
}

MultilegExpiration represents time-in-force for multi-leg orders.

type MultilegInstrument

type MultilegInstrument struct {
	Symbol string `json:"symbol"`
	Type   string `json:"type"`
}

MultilegInstrument represents an instrument in a multi-leg order.

type MultilegLeg

type MultilegLeg struct {
	Instrument         MultilegInstrument `json:"instrument"`
	Side               string             `json:"side"`
	OpenCloseIndicator string             `json:"openCloseIndicator"`
	RatioQuantity      int                `json:"ratioQuantity"`
}

MultilegLeg represents a single leg in a multi-leg order.

type MultilegOrderRequest

type MultilegOrderRequest struct {
	OrderID    string             `json:"orderId"`
	OrderType  string             `json:"orderType"`
	Expiration MultilegExpiration `json:"expiration"`
	Quantity   string             `json:"quantity"`
	LimitPrice string             `json:"limitPrice"`
	Legs       []MultilegLeg      `json:"legs"`
}

MultilegOrderRequest represents a multi-leg order request.

type MultilegOrderResponse

type MultilegOrderResponse struct {
	OrderID string `json:"orderId"`
}

MultilegOrderResponse represents the API response for a multi-leg order.

type MultilegPreflightLeg

type MultilegPreflightLeg struct {
	Instrument         MultilegInstrument `json:"instrument"`
	Side               string             `json:"side"`
	OpenCloseIndicator string             `json:"openCloseIndicator"`
	RatioQuantity      int                `json:"ratioQuantity"`
}

MultilegPreflightLeg represents a leg in the preflight response.

type MultilegPreflightRequest

type MultilegPreflightRequest struct {
	OrderType  string             `json:"orderType"`
	Expiration MultilegExpiration `json:"expiration"`
	Quantity   string             `json:"quantity"`
	LimitPrice string             `json:"limitPrice"`
	Legs       []MultilegLeg      `json:"legs"`
}

MultilegPreflightRequest represents a multi-leg preflight request.

type MultilegPreflightResponse

type MultilegPreflightResponse struct {
	BaseSymbol              string                 `json:"baseSymbol"`
	StrategyName            string                 `json:"strategyName"`
	Legs                    []MultilegPreflightLeg `json:"legs"`
	EstimatedCommission     string                 `json:"estimatedCommission"`
	RegulatoryFees          MultilegRegulatoryFees `json:"regulatoryFees"`
	EstimatedIndexOptionFee string                 `json:"estimatedIndexOptionFee"`
	OrderValue              string                 `json:"orderValue"`
	EstimatedQuantity       string                 `json:"estimatedQuantity"`
	EstimatedCost           string                 `json:"estimatedCost"`
	BuyingPowerRequirement  string                 `json:"buyingPowerRequirement"`
	EstimatedProceeds       string                 `json:"estimatedProceeds"`
	PriceIncrement          MultilegPriceIncrement `json:"priceIncrement"`
}

MultilegPreflightResponse represents the API response for multi-leg preflight.

type MultilegPriceIncrement

type MultilegPriceIncrement struct {
	IncrementBelow3  string `json:"incrementBelow3"`
	IncrementAbove3  string `json:"incrementAbove3"`
	CurrentIncrement string `json:"currentIncrement"`
}

MultilegPriceIncrement represents price increment information.

type MultilegRegulatoryFees

type MultilegRegulatoryFees struct {
	SECFee      string `json:"secFee"`
	TAFFee      string `json:"tafFee"`
	ORFFee      string `json:"orfFee"`
	ExchangeFee string `json:"exchangeFee"`
	OCCFee      string `json:"occFee"`
	CATFee      string `json:"catFee"`
}

MultilegRegulatoryFees represents regulatory fees for multi-leg orders.

Jump to

Keyboard shortcuts

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