Market Maker Integration Guide
How to integrate you market making operation with the HidingBook
Please Refer to the HidingBook API when reading this document
- 1.Call the
GET /info
endpoint to get the required information for signing orders - 2.Add capability to sign a 0xv4 RFQ order with your hot wallet
- 4.
- 3.
- 1.Most of the order params are populated by you based on your trade
- 2.Obtain some of these order params from the
orderDetails
of the/info
endpoint- 1.
txOrigin
- 2.
pool
- 3.
verifyingContract
- 4.
chainId
- 5.
taker
- 4.Post your orders to the Hiding Book via the
POST /orders
endpoint for validation. The server will alert you of any errors, insufficient balances, or insufficient allowances. - 5.Manage allowances
- 1.Market maker must approve token transfer allowances where the spender is the 0xv4
verifyingContract
provided in theGET /info
endpoint.
- 1.
- 1.The order's maker needs to sign and broadcast a cancel transaction to the blockchain. There are a variety of ways to cancel orders, including cancel one order, batch cancel many orders, etc.
- 1.Use Ethereum event logs
- 2.Search using topic
0x829fa99d94dc4636925b38632e625736a614c154d55006b7ab6bea979c210c32
- 4.Filter the event log data to only orders you care about
- 1.Maker address must be your address
- 2.To address of event log's origination must be the 0x proxy
0xdef1c0ded9bec7f1a1670819833240f027b25eff
- 3.Match the orderHash corresponding to the orderHash you signed. If it matches one of yours, then your order was filled. This is important because if you're using the 0xv4 protocol for any other purposes, this ensures that this is a Rook order and not a 0xv4 RFQ order that you performed on the same address
- 5.Determining an order's status
- 1.
- 1.
- 2.
Last modified 9mo ago