Versions in this module Expand all Collapse all v0 v0.1.0 Jul 3, 2026 Changes in this version + func SignPayload(body, secret string, timestamp int64) string + type APIError struct + Message string + StatusCode int + func (e *APIError) Error() string + type Client struct + APIKey string + BaseURL string + HTTPClient *http.Client + func New(apiKey string) *Client + func (c *Client) InvestingCreateOrder(p OrderParams) (map[string]any, error) + func (c *Client) SwapsQuote(p map[string]any) (map[string]any, error) + func (c *Client) WalletsRetrieve() (map[string]any, error) + func (c *Client) WalletsTransfer(p TransferParams) (map[string]any, error) + type Event struct + Created int64 + Data json.RawMessage + ID string + Type string + func ConstructEvent(body []byte, signatureHeader, secret string) (*Event, error) + type OrderParams struct + Notional float64 + Side string + Symbol string + Type string + type TransferParams struct + Amount float64 + Chain string + Destination string + Signature string + Token string