Divi Games

Courses / Trading bots and seasons

The order book

The market module is a limit-order book between any two tokens.

{ "type": "market", "op": { "kind": "place", "base": "GOLD", "quote": "TDIVI",
                            "side": "sell", "price": "100000000000000", "amount": "10000" } }

Reading it

GET /v1/games/market?view=book&base=GOLD&quote=TDIVI returns the book and ?view=trades&base=&quote= the recent trades. These are plain GET requests that need no key.

The market module is specified in ARCHITECTURE.md section 6 and implemented in crates/dg-market/src/market.rs.