12 Commits

Author SHA1 Message Date
ekzyis
3092a3f89d Remove order_id, add created_at column 2023-09-09 22:52:51 +02:00
ekzyis
a01d4488cc Render or poll invoice status 2023-09-09 22:52:51 +02:00
ekzyis
d987934ba4 Add user page 2023-09-09 22:52:51 +02:00
ekzyis
e6aec21aff Add share pointer to type Order 2023-09-09 22:52:51 +02:00
ekzyis
e5f5759871 Redirect after payment 2023-09-09 22:52:51 +02:00
ekzyis
921623ee4d Respond with 402 Payment Required 2023-09-09 22:52:51 +02:00
ekzyis
f09beb1a4a Implement POST /market/:id/order 2023-09-09 22:52:51 +02:00
ekzyis
76309c4153 Show order book + focus on binary market 2023-09-09 22:52:51 +02:00
ekzyis
8eecf1a981 Drop column funding 2023-09-09 22:52:51 +02:00
ekzyis
c2a8968120 Refactor router code 2023-09-09 22:52:51 +02:00
ekzyis
7094438152 Use cost function
With this cost function, buying and selling is a lot easier since it uses the same function.

Also, shares are now always integers which is also easier to grasp.

Reference: http://blog.oddhead.com/2006/10/30/implementing-hansons-market-maker/
2023-09-09 22:52:50 +02:00
ekzyis
87ce57c862 Add binary market page 2023-09-09 22:52:50 +02:00