Versions in this module Expand all Collapse all v0 v0.0.2 Aug 26, 2022 v0.0.1 Aug 26, 2022 Changes in this version + const Endpoint + const OrderSideASK + const OrderSideBID + const OrderStateDone + const OrderStatePending + const OrderTypeLimit + const OrderTypeMarket + const TradeSideMaker + const TradeSideTaker + const TransferSourceCancel + const TransferSourceMatch + const TransferSourceRefund + func EncodeAuthMemo(key crypto.PublicKey) (string, error) + func SignToken(claim Claim, key interface{}) (string, error) + func UseEndpoint(endpoint string) + type AssetTicker struct + AssetID string + Change decimal.Decimal + ChangeBTC decimal.Decimal + ChangeUSD decimal.Decimal + Price decimal.Decimal + PriceBTC decimal.Decimal + PriceUSD decimal.Decimal + Symbol string + Volume decimal.Decimal + func ReadAssetTickers(ctx context.Context) ([]*AssetTicker, error) + type Claim struct + MerchantID string + UserID string + type Depth struct + Asks []DepthOrder + Bids []DepthOrder + LastUpdateID int64 + func ReadDepth(ctx context.Context, symbol string, limit int) (*Depth, error) + type DepthOrder []decimal.Decimal + func (order DepthOrder) Values() (price, amount decimal.Decimal) + type Order struct + BaseAssetID string + CreatedAt int64 + FilledAmount decimal.Decimal + FilledFunds decimal.Decimal + OrderID string + OrderType string + Price decimal.Decimal + QuoteAssetID string + RemainingAmount decimal.Decimal + RemainingFunds decimal.Decimal + Side string + State string + Symbol string + UserID string + func QueryOrder(ctx context.Context, token, orderID string) (*Order, error) + func QueryOrders(ctx context.Context, token string, input *QueryOrdersInput) ([]*Order, *pagination.Pagination, error) + type OrderAction struct + A uuid.UUID + M uuid.UUID + O uuid.UUID + P string + S string + T string + U []byte + func ParsePutOrder(memo string) (*OrderAction, error) + func (action *OrderAction) Encode() (string, error) + type Pair struct + AmountPrecision int32 + BaseAsset string + BaseAssetID string + BaseMaxAmount decimal.Decimal + BaseMinAmount decimal.Decimal + FundPrecision int32 + Logo string + PricePrecision int32 + QuoteAsset string + QuoteAssetID string + QuoteMaxAmount decimal.Decimal + QuoteMinAmount decimal.Decimal + Status string + Symbol string + func ReadPairs(ctx context.Context) ([]*Pair, error) + type PutOrderInput struct + Base string + MerchantID string + Price string + Quote string + Side string + Type string + type PutOrderOutput struct + AssetID string + Memo string + Opponent string + func PutOrder(input *PutOrderInput) (*PutOrderOutput, error) + type QueryOrdersInput struct + Cursor string + End int64 + Limit int + Order string + Side string + Start int64 + State string + Symbol string + type TransferAction struct + A uuid.UUID + C string + O uuid.UUID + P string + S string + func ParseTransfer(memo string) (*TransferAction, error) Other modules containing this package github.com/fox-one/pkg