Versions in this module Expand all Collapse all v1 v1.0.0 Jul 14, 2026 Changes in this version + type Balance struct + Available string + AvgPrice string + Balance string + Currency string + TradeInUse string + WithdrawalInUse string + type BalanceRequest struct + AccountSeq *int + Currencies *string + type Candle struct + Close string + High string + Low string + Open string + Timestamp int64 + Volume string + type CandlesRequest struct + EndTime *int + Interval string + Limit int + StartTime *int + Symbol Symbol + type Client struct + func New(wire Doer, log *slog.Logger) *Client + func (c *Client) Balance(ctx context.Context, req BalanceRequest, pol korbit.Policy) ([]Balance, json.RawMessage, korbit.Meta, error) + func (c *Client) Candles(ctx context.Context, req CandlesRequest, pol korbit.Policy) ([]Candle, json.RawMessage, korbit.Meta, error) + func (c *Client) Currencies(ctx context.Context, _ CurrenciesRequest, pol korbit.Policy) ([]CurrencyInfo, json.RawMessage, korbit.Meta, error) + func (c *Client) DepositAddress(ctx context.Context, req DepositAddressRequest, pol korbit.Policy) (DepositAddress, json.RawMessage, korbit.Meta, error) + func (c *Client) DepositAddresses(ctx context.Context, req DepositAddressesRequest, pol korbit.Policy) ([]DepositAddress, json.RawMessage, korbit.Meta, error) + func (c *Client) DepositGenerate(ctx context.Context, req DepositGenerateRequest, pol korbit.Policy) (DepositAddress, json.RawMessage, korbit.Meta, error) + func (c *Client) DepositHistory(ctx context.Context, req DepositHistoryRequest, pol korbit.Policy) ([]CoinDeposit, json.RawMessage, korbit.Meta, error) + func (c *Client) DepositStatus(ctx context.Context, req DepositStatusRequest, pol korbit.Policy) (CoinDeposit, json.RawMessage, korbit.Meta, error) + func (c *Client) Fees(ctx context.Context, req FeesRequest, pol korbit.Policy) ([]Fee, json.RawMessage, korbit.Meta, error) + func (c *Client) Fills(ctx context.Context, req FillsRequest, pol korbit.Policy) ([]Fill, json.RawMessage, korbit.Meta, error) + func (c *Client) KRWDeposit(ctx context.Context, req KRWDepositRequest, pol korbit.Policy) (KRWPushResponse, json.RawMessage, korbit.Meta, error) + func (c *Client) KRWDeposits(ctx context.Context, req KRWDepositsRequest, pol korbit.Policy) ([]KRWDeposit, json.RawMessage, korbit.Meta, error) + func (c *Client) KRWWithdraw(ctx context.Context, req KRWWithdrawRequest, pol korbit.Policy) (KRWPushResponse, json.RawMessage, korbit.Meta, error) + func (c *Client) KRWWithdrawals(ctx context.Context, req KRWWithdrawalsRequest, pol korbit.Policy) ([]KRWWithdrawal, json.RawMessage, korbit.Meta, error) + func (c *Client) OrderCancel(ctx context.Context, req OrderCancelRequest, pol korbit.Policy) (OrderCancelResponse, json.RawMessage, korbit.Meta, error) + func (c *Client) OrderGet(ctx context.Context, req OrderGetRequest, pol korbit.Policy) (Order, json.RawMessage, korbit.Meta, error) + func (c *Client) OrderHistory(ctx context.Context, req OrderHistoryRequest, pol korbit.Policy) ([]Order, json.RawMessage, korbit.Meta, error) + func (c *Client) OrderOpen(ctx context.Context, req OrderOpenRequest, pol korbit.Policy) ([]Order, json.RawMessage, korbit.Meta, error) + func (c *Client) OrderPlace(ctx context.Context, req OrderPlaceRequest, pol korbit.Policy) (OrderPlaceResponse, json.RawMessage, korbit.Meta, error) + func (c *Client) Orderbook(ctx context.Context, req OrderbookRequest, pol korbit.Policy) (Orderbook, json.RawMessage, korbit.Meta, error) + func (c *Client) Pairs(ctx context.Context, _ PairsRequest, pol korbit.Policy) ([]Pair, json.RawMessage, korbit.Meta, error) + func (c *Client) TickSize(ctx context.Context, req TickSizeRequest, pol korbit.Policy) ([]TickSizePolicy, json.RawMessage, korbit.Meta, error) + func (c *Client) Ticker(ctx context.Context, req TickerRequest, pol korbit.Policy) ([]Ticker, json.RawMessage, korbit.Meta, error) + func (c *Client) Time(ctx context.Context, _ TimeRequest, pol korbit.Policy) (ServerTime, json.RawMessage, korbit.Meta, error) + func (c *Client) Trades(ctx context.Context, req TradesRequest, pol korbit.Policy) ([]Trade, json.RawMessage, korbit.Meta, error) + func (c *Client) Whoami(ctx context.Context, _ WhoamiRequest, pol korbit.Policy) (KeyInfo, json.RawMessage, korbit.Meta, error) + func (c *Client) WithdrawAddresses(ctx context.Context, req WithdrawAddressesRequest, pol korbit.Policy) ([]WithdrawableAddress, json.RawMessage, korbit.Meta, error) + func (c *Client) WithdrawAmount(ctx context.Context, req WithdrawAmountRequest, pol korbit.Policy) ([]WithdrawableAmount, json.RawMessage, korbit.Meta, error) + func (c *Client) WithdrawCancel(ctx context.Context, req WithdrawCancelRequest, pol korbit.Policy) (WithdrawCancelResponse, json.RawMessage, korbit.Meta, error) + func (c *Client) WithdrawHistory(ctx context.Context, req WithdrawHistoryRequest, pol korbit.Policy) ([]CoinWithdrawal, json.RawMessage, korbit.Meta, error) + func (c *Client) WithdrawRequest(ctx context.Context, req WithdrawRequestRequest, pol korbit.Policy) (WithdrawRequestResponse, json.RawMessage, korbit.Meta, error) + func (c *Client) WithdrawStatus(ctx context.Context, req WithdrawStatusRequest, pol korbit.Policy) (CoinWithdrawal, json.RawMessage, korbit.Meta, error) + type CoinDeposit struct + Address string + CreatedAt int64 + Currency string + ID int64 + Network string + Quantity string + SecondaryAddress string + Status string + TransactionHash string + type CoinWithdrawal struct + Address string + CreatedAt int64 + Currency string + Fee string + ID int64 + Network string + Quantity string + SecondaryAddress string + Status string + TransactionHash string + type CurrenciesRequest struct + type Currency string + type CurrencyInfo struct + DefaultNetwork string + FullName string + Name string + NetworkList []CurrencyNetwork + WithdrawalMaxAmountPerRequest string + WithdrawalMinAmount string + type CurrencyNetwork struct + DepositStatus string + Name string + Raw json.RawMessage + WithdrawalStatus string + func (n *CurrencyNetwork) UnmarshalJSON(b []byte) error + type DepositAddress struct + Address string + Currency string + Network string + SecondaryAddress string + type DepositAddressRequest struct + AccountSeq *int + Currency Currency + Network *string + type DepositAddressesRequest struct + AccountSeq *int + type DepositGenerateRequest struct + AccountSeq *int + Currency Currency + Network *string + type DepositHistoryRequest struct + AccountSeq *int + Currency Currency + Limit *int + type DepositStatusRequest struct + AccountSeq *int + CoinDepositID int + Currency Currency + type Doer interface + Do func(ctx context.Context, call korbit.Call, pol korbit.Policy) (json.RawMessage, korbit.Meta, error) + type Fee struct + BuyFeeCurrency string + MakerFeeRate string + MaxFeeRate string + SellFeeCurrency string + Symbol string + TakerFeeRate string + type FeesRequest struct + AccountSeq *int + Symbol *string + type Fill struct + Amt string + FeeCurrency string + FeeQty string + IsTaker bool + OrderID int64 + Price string + Qty string + Side string + Symbol string + TradeID int64 + TradedAt int64 + type FillsRequest struct + AccountSeq *int + EndTime *int + Limit *int + StartTime *int + Symbol Symbol + type KRWDeposit struct + CreatedAt int64 + ID int64 + Quantity string + Status string + type KRWDepositRequest struct + AccountSeq *int + Amount string + type KRWDepositsRequest struct + AccountSeq *int + Limit *int + type KRWPushResponse struct + Success bool + type KRWWithdrawRequest struct + AccountSeq *int + Amount string + type KRWWithdrawal struct + CreatedAt int64 + Fee string + ID int64 + Quantity string + Status string + type KRWWithdrawalsRequest struct + AccountSeq *int + Limit *int + type KeyInfo struct + APIKey string + AllowedAccountSeqs []int + CreatedAt int64 + Expiration int64 + Label string + Permissions []string + PublicKey string + Status string + Type string + UserUUID string + Whitelist string + type Order struct + Amt string + AvgPrice string + ClientOrderID string + CreatedAt int64 + FilledAmt string + FilledQty string + LastFilledAt int64 + OrderID int64 + OrderType string + Price string + Qty string + Side string + Status string + Symbol string + TimeInForce string + type OrderCancelRequest struct + AccountSeq *int + ClientOrderID *string + OrderID *int + Symbol Symbol + type OrderCancelResponse struct + Success bool + type OrderGetRequest struct + AccountSeq *int + ClientOrderID *string + OrderID *int + Symbol Symbol + type OrderHistoryRequest struct + AccountSeq *int + EndTime *int + Limit *int + StartTime *int + Symbol Symbol + type OrderOpenRequest struct + AccountSeq *int + Limit *int + Symbol Symbol + type OrderPlaceRequest struct + AccountSeq *int + Amt *string + BestNth *int + ClientOrderID *string + OrderType OrderType + PP *bool + PPPercent *int + Price *string + Qty *string + Side Side + Symbol Symbol + TimeInForce *TimeInForce + type OrderPlaceResponse struct + ClientOrderID string + OrderID int64 + type OrderType string + const OrderTypeBest + const OrderTypeLimit + const OrderTypeMarket + type Orderbook struct + Asks []OrderbookLevel + Bids []OrderbookLevel + Timestamp int64 + type OrderbookLevel struct + Amt string + Price string + Qty string + type OrderbookRequest struct + Level *string + Symbol Symbol + type Pair struct + Status string + Symbol string + type PairsRequest struct + type ServerTime struct + Time int64 + type Side string + const SideBuy + const SideSell + type Symbol string + type TickSizeBand struct + PriceGte string + TickSize string + type TickSizePolicy struct + OrderbookLevels []string + Symbol string + TickSizePolicy []TickSizeBand + type TickSizeRequest struct + Symbol Symbol + type Ticker struct + BestAskPrice string + BestBidPrice string + Close string + High string + LastTradedAt int64 + Low string + Open string + PrevClose string + PriceChange string + PriceChangePercent string + QuoteVolume string + Symbol string + Volume string + type TickerRequest struct + Symbol *string + type TimeInForce string + const TimeInForceFOK + const TimeInForceGTC + const TimeInForceIOC + const TimeInForcePO + type TimeRequest struct + type Trade struct + IsBuyerTaker bool + Price string + Qty string + Timestamp int64 + TradeID int64 + type TradesRequest struct + Limit *int + Symbol Symbol + type WhoamiRequest struct + type WithdrawAddressesRequest struct + AccountSeq *int + type WithdrawAmountRequest struct + AccountSeq *int + Currency *string + type WithdrawCancelRequest struct + AccountSeq *int + CoinWithdrawalID int + type WithdrawCancelResponse struct + Success bool + type WithdrawHistoryRequest struct + AccountSeq *int + Currency Currency + Limit *int + type WithdrawRequestRequest struct + AccountSeq *int + Address string + Amount string + Currency Currency + Network *string + SecondaryAddress *string + type WithdrawRequestResponse struct + CoinWithdrawalID int64 + Status string + type WithdrawStatusRequest struct + AccountSeq *int + CoinWithdrawalID int + Currency Currency + type WithdrawableAddress struct + Address string + Currency string + Network string + SecondaryAddress string + type WithdrawableAmount struct + Currency string + WithdrawableAmount string + WithdrawalInUseAmount string