From 2f3ee17bd4a5404412ebea113998e53656b665fa Mon Sep 17 00:00:00 2001 From: crispheaney Date: Fri, 19 Jan 2024 19:47:20 +0000 Subject: [PATCH] deploy: b1e815a15a2f8b4e624f12514fff2fcc37405d6b --- index.html | 36 ++++++++++++++++++++++++++++++++++-- 1 file changed, 34 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index 0f17eb7..633e697 100644 --- a/index.html +++ b/index.html @@ -376,6 +376,9 @@
  • Order Params
  • +
  • + Post Only Params +
  • Placing Perp Order
  • @@ -1146,8 +1149,8 @@

    Order Params

    postOnly If the order can only be a maker -Yes -false +PostOnlyParam +None triggerPrice @@ -1192,6 +1195,35 @@

    Order Params

    +

    Post Only Params

    +

    Drift orderbook is not a strict clob that enforces price-time priority. This is to maximize the parallelization of placing orders to +take advantage of the solana runtime. To force an order to always be a maker, users most set the post only params. If a user order is set to post only, +drift will check that an order does not cross the vamm spread, similar to how a traditional clob would check that an order doesn't cross the book's best bid/ask. +If the post only is not used, a limit order can end up being a taker or maker.

    + + + + + + + + + + + + + + + + + + + + + + + +
    ParameterDescription
    NoneDoes not enforce being maker
    MustPostOnlyTx fails if order crosses the vamm
    TryPostOnlyOrder is skipped (not placed) and tx succeeds if order crosses the vamm
    SlideOrder price is modified to be one tick below/above the vamm ask/bid

    Placing Perp Order

    
     // market buy for 100 SOL-PERP @ $21.20->$21.30 over 60 slots (~30 seconds)
     // after 60 slots, market buy 100 SOL-PERP @ $21.35 until maxTs