diff --git a/REST-API.md b/REST-API.md index 9e22890..d540c10 100644 --- a/REST-API.md +++ b/REST-API.md @@ -52,6 +52,7 @@

Trades

+

POST /trade/add

Add a new trade. product is an integer enum and type is a boolean (see tables below).

curl -X POST http://localhost:8080/trade/add \
@@ -75,3 +76,20 @@ Value | Meaning
 2 | OptionPutTrade
 3 | CurrencyTrade
 4 | BondTrade
+
+

GET /trade/list

+

getting a list of trades in the db

+
curl -X POST http://localhost:8080/trade/list 
+
return:\
+{\
+"Symbol":"NOVOBc",\
+"CurrencyCode":"DKK",\
+"Shares":15,\
+"Product":0,\
+"Type":true,\
+"Price":505,\
+"Date":"2025-03-26T00:00:00Z"
+}
+
+ +