28 Commits

Author SHA1 Message Date
9a6d3d33a4 Add OpenAPI v3.0 Docs for API (#243)
* Add initial api docs using drf-spectacular

This commit adds the inital and basic docs using drf-spectacular.
It also adds some serializers to be used for automatically
generating response objects by drf-spectacular

* Update api docs with correct request and response objects

- TODO: /order route

* Fix typo in api docs

* Separate OpenAPI schemas into it's own file

* Update drf-spectacular and add API intro and logo

* Update API docs for GET /order

* Add api docs for POST /order route

* Update serializers.py
2022-10-02 18:02:35 +00:00
eff58dc91d Add stealth invoices (#210)
* Add stealth invoice switch to profile

* Add stealth invoice including only order uuid

* Add explanatory tooltip for stealth invoices and fix code smells
2022-08-12 17:41:06 +00:00
bd70d94d4a Add MarketTicks endpoint /api/ticks. Fix do_accounting. 2022-06-21 13:25:03 -07:00
cf82a4d6ae Add onchain logics pt2 2022-06-06 13:37:51 -07:00
5b214c3b9c Validate length of token_hash. Increase expiry times of routing status. 2022-05-30 07:08:32 -07:00
ac0969baf6 Convert new UserGen into POST. Fix misformed armored keys. Example encrypt/decrypt. 2022-05-23 04:21:01 -07:00
755874b100 Advanced maker options v2 (#110)
* Add escrow/invoice time customization

* Add accordion for Expiry times

* Add current price on order maker

* Add deposit timeout limit on order page

* Minor aestetic fixes

* Implement pause/unpause and expiry reasons

* Add renew order

* Add highlight buy/sell on maker page

* Fix order renewal. Improve book visuals and response.

* Fix double renew requests

* Fix cancel orders. Fix paused status to delay

* Fix paused order layout and loading spinner

* Add telegram message: order is in chat
2022-04-29 18:54:20 +00:00
8ae2406275 Implement backend handle range amounts, order take amount input and order book ranges 2022-03-22 10:49:57 -07:00
bf80986005 Implement min_amount max_amount model props and validation 2022-03-21 16:27:36 -07:00
d31bd63edc Add maker selects fidelity bond size 2022-03-18 15:09:38 -07:00
a36f23b572 Add maker selects public duration 2022-03-18 14:21:13 -07:00
f383d20c37 Implement public API non-KYC BTC prices 2022-03-12 03:24:11 -08:00
255dae188d Implement withdraw rewards (backend & frontend) 2022-03-06 08:08:28 -08:00
fc4ccd5281 Re-format all python code 2022-02-17 11:50:10 -08:00
1a6aa8a9ee Improve failure logics. Add platform rating. 2022-02-04 10:07:09 -08:00
9d883ccc4d Add expiration logics. Add dispute statements. 2022-01-16 13:54:42 -08:00
2523e5ef09 Add needed LNNode routines and LNpayments status. First full trade demonstrated 2022-01-12 04:57:03 -08:00
c0d6236dbb Maker and taker bonds OK 2022-01-06 13:36:22 -08:00
34e05465c2 Add more logics bareframes 2022-01-06 12:33:40 -08:00
46c129bf80 Add logics module 2022-01-06 04:32:17 -08:00
bd1601d59f Bug fix, order status now as message, HTLCs relationals working 2022-01-05 04:18:54 -08:00
9ade961e0f Work on update order endpoint and taker requests 2022-01-04 16:13:08 -08:00
0823febf73 Add order expiry time and rework book page 2022-01-04 02:21:45 -08:00
c71d95ccd0 Rename boolean explicit for is_explicit/isExplicit 2022-01-02 05:38:45 -08:00
c4b625a993 Fix order detail page view. Add explicit to model as pricing method boolean explicit/relative 2022-01-02 05:24:35 -08:00
298efc394b Create order detail API endpoint, create order page. Not fully working yet 2022-01-02 04:59:48 -08:00
e087d0b686 Add payment method field 2022-01-02 01:40:19 -08:00
76a45bc8d5 Create API endpoint for POST make order
Added the Order model with a rough approxiation to the fields needed. The field status can be read lineally as the progression trough the app pipeline. The view serves POSTs requests to enter new orders into the db.
2022-01-01 14:40:08 -08:00