Skip to main content

Market buy order

To perform a market buy. We use KuruSdk.IOC.placeMarket() Set isBuy to false to place a Market sell order.
marketBuy

Estimate buy

To estimate the baseAsset received for a buy order with X amount of quoteAsset. We use KuruSdk.CostEstimator.estimateMarketBuy()
EstimateBuy

Estimate base for sell

To estimate the required baseAsset for a sell order to get X amount of quoteAsset. We use KuruSdk.CostEstimator.estimateRequiredBaseForSell()
EstimateSell
Before placing any limit orders, deposit the required tokens into your margin account and ensure sufficient allowance; otherwise orders will revert due to insufficient balance.

Deposit into margin account

MarginDeposit

Place limit buy

To place a limit buy order. We use KuruSdk.GTC.placeLimit() After sending, call parseEvents(receipt) to confirm the order was created and to read new order IDs. Set isBuy to false to place a limit sell order.
parseEvents.ts
placeLimitBuy.ts

Cancel order

To cancel orders using the Kuru SDK. We use KuruSdk.OrderCanceler.cancelOrders()
cancelOrder

FlipOrders( Liquidity )

Flip orders place an order that, when filled, automatically creates an opposite-side order at a specified “flipped” price. They let you enter as a maker and immediately re-quote on the other side to maintain liquidity across both sides of the book. Using FlipOrders we could provide Liquidity in following ways.

Spot

Even spread across a price band around best ask.
placeSpotConcentratedLiquidity

Bid-Ask

asymmetric distribution (separate shaping on bids vs asks)
placeBidAskConcentratedLiquidity

Curve

curved distribution (e.g., more weight near best price, tapering out).
placeCurveConcentratedLiquidity