ekzyis
38318688b9
Fix user balance query
2023-12-02 02:56:58 +01:00
ekzyis
c92557cd2a
Fix timestamp of sell orders
...
For some reason, I had to put o.invoice_id at the end of the select list. Else, sell orders would receive wrong/empty data.
2023-12-02 02:56:04 +01:00
ekzyis
16e6efe6c2
Fix unpaid market orders shown
2023-12-02 02:45:37 +01:00
ekzyis
272591b015
Fix empty stats
2023-12-02 02:24:48 +01:00
ekzyis
ad7778302b
Fix definition of 'confirmed'
2023-11-30 22:09:38 +01:00
ekzyis
c6d81d5848
Fix market orders not showing sell orders
2023-11-29 19:06:32 +01:00
ekzyis
fd6111b590
Create sell orders
2023-11-29 18:48:21 +01:00
ekzyis
0ae9f671d4
Add sell order form
2023-11-29 08:11:56 +01:00
ekzyis
dc082ec4f2
Remove log.Println
2023-11-29 05:53:52 +01:00
ekzyis
c9de76ac75
Add market stats page
2023-11-29 04:11:46 +01:00
ekzyis
8098daab8c
Highlight matching orders
2023-11-28 22:10:16 +01:00
ekzyis
1944b04d07
Run matchmaking
2023-11-28 21:39:58 +01:00
ekzyis
3445693ef4
Use context during invoice polling
2023-11-27 22:09:51 +01:00
ekzyis
10eaecdf0d
Rename status to PENDING
2023-11-27 18:12:00 +01:00
ekzyis
f91080da27
Add order status column
2023-11-27 17:45:07 +01:00
ekzyis
b2d8c089c9
Only fetch paid orders
2023-11-27 02:46:48 +01:00
ekzyis
e84db076a4
Use router-view for markets
2023-11-27 00:59:15 +01:00
ekzyis
c96eeb7668
Show user orders
2023-11-27 00:21:39 +01:00
ekzyis
aa6db6a5e1
Fix foreign key constraint violation during market creation
2023-11-26 23:48:55 +01:00
ekzyis
73162155d5
Fix orphaned invoices with Tx and Context usage
...
txs are now rolled back on order error
2023-11-26 23:22:34 +01:00
ekzyis
6d7cd2573d
Show user invoices
2023-11-26 22:35:51 +01:00
ekzyis
0daddb8e5d
Add quantity constraint
2023-11-26 18:40:57 +01:00
ekzyis
0827451f5e
Fix "relation does not exist" error
2023-11-20 14:18:50 +01:00
ekzyis
7b649c4d7d
Replace market status with JOIN
2023-11-20 03:09:55 +01:00
ekzyis
ce64608894
Allow creation of markets
2023-11-20 02:52:08 +01:00
ekzyis
1351439a15
Run invoice checks on startup
2023-11-20 00:38:52 +01:00
ekzyis
4b0d017b98
Add invoice description
2023-11-20 00:38:52 +01:00
ekzyis
ebdf0d1e90
Add order form
...
* add POST /api/order -> 402 Payment Required
* redirect to /invoice/:id
2023-11-20 00:38:52 +01:00
ekzyis
fc6fb9914e
Test login + callback
2023-11-03 20:34:21 +01:00
ekzyis
c66e96bf3f
refactor: fix init and use DI
...
* fix init misuse which makes running tests impossible since tests are run inside a temporary test directory which breaks env loading
* use dependency injection pattern for server creation and global server context in route handlers
2023-11-03 20:34:21 +01:00
ekzyis
7558655458
refactor: Structure code into different packages
...
I have put too much code into the same files.
Also, I put everything into the same package: main.
This package is only meant for executables.
Therefore, I have refactored my code to use multiple packages. These packages also guarantee separation of concerns since Golang doesn't allow cyclic imports.
2023-09-10 23:13:08 +02:00