Skip to content

Backend Routes

Course: Building an Exchange - Part 1 - chapter 6

POST /api/v1/signup - Lets a user signup

POST /api/v1/signin - Lets a user signin, returns a jwt

POST /api/v1/order - Lets a user place an order. Returns orderId and fill status

type: limit | market
kind: buy | sell
price: number
quantity: number
market: TATA-INR

GET /api/v1/order/:orderId - Returns fill status

DELETE /api/v1/order/:orderId - Removes an order off the book (if it isn’t filled yet)

POST /api/v1/order/quote

kind: buy | sell
quantity: number
market: TATA-INR