Versions in this module Expand all Collapse all v0 v0.1.2 Aug 24, 2026 Changes in this version + const ErrBadInput + const ErrBadKey + const ErrBadPayload + const ErrDisarmed + const ErrIndeterminate + const ErrLimitExceed + const ErrNotFound + const ErrNotResting + const ErrRateLimited + const ErrUnauthed + const ErrUnreachable + const ErrUpstream + var DefaultRiskLimits = RiskLimits + func Code(err error) string + type AmendResult struct + ClientOrderID string + FillCountFP string + OrderID string + RemainingFP string + TsMs int64 + type ArmState struct + func (a *ArmState) Arm(acknowledgement string) error + func (a *ArmState) Armed() bool + func (a *ArmState) Disarm() + type Balance struct + BalanceDollars string + PortfolioDollars string + UpdatedTS int64 + type CancelResult struct + ClientOrderID string + OrderID string + ReducedByFP string + TsMs int64 + type Client struct + func New(apiKeyID, keyPath string) (*Client, error) + func NewWithBaseURL(apiKeyID string, key *rsa.PrivateKey, baseURL string, httpClient *http.Client) *Client + func (c *Client) AmendOrder(ctx context.Context, orderID string, req PlaceRequest, arm *ArmState, ...) (*AmendResult, error) + func (c *Client) CancelOrder(ctx context.Context, orderID, marketTicker string) (*CancelResult, error) + func (c *Client) GetOrder(ctx context.Context, orderID string) (*LiveOrder, error) + func (c *Client) GetPortfolio(ctx context.Context) (*Portfolio, error) + func (c *Client) PlaceOrder(ctx context.Context, req PlaceRequest, arm *ArmState, limits *RiskLimits, ...) (*PlaceResult, error) + type Fill struct + BookSide string + CountFP string + CreatedTime string + FeeCost string + FillID string + IsTaker *bool + OrderID string + OutcomeSide string + Ticker string + YesPrice string + type LiveOrder struct + BookSide string + ClientOrderID string + FillCountFP string + InitialCountFP string + OrderID string + OutcomeSide string + RemainingFP string + Status string + Ticker string + Type string + YesPrice string + type PlaceRequest struct + CancelOrderOnPause bool + ClientOrderID string + CountFP string + ExpirationTimeSec int64 + PostOnly bool + PriceDollars string + ReduceOnly bool + SelfTradePreventionType string + Side string + Ticker string + TimeInForce string + type PlaceResult struct + AvgFeePaid string + AvgFillPrice string + ClientOrderID string + FillCountFP string + OrderID string + RemainingFP string + StatusEcho string + TsMs int64 + type Portfolio struct + Balance Balance + Fills []Fill + Orders []RestingOrder + Positions []Position + type Position struct + FeesPaidDollars string + LastUpdated string + MarketExposure string + PositionFP string + RealizedPnlDollars string + Ticker string + type RestingOrder struct + Action string + ClientOrderID string + CountFP string + CreatedTime string + FilledCountFP string + OrderID string + PriceDollars string + RemainingFP string + Side string + Status string + Ticker string + type RiskLimits struct + MaxDailyNotionalDollars string + MaxDailyOrders int + MaxOrderNotionalDollars string + type RiskTracker struct + func NewRiskTracker(limits RiskLimits) (*RiskTracker, error) + func (r *RiskTracker) Snapshot() (orders int, notional string) + type TypedError struct + Code string + Message string + func (e *TypedError) Error() string