diff --git a/REST-API.md b/REST-API.md index 5168a07..2956592 100644 --- a/REST-API.md +++ b/REST-API.md @@ -82,9 +82,35 @@ Value | Meaning
curl -X POST http://localhost:8080/trade/list 
return:
 
-{
+[{
 "Symbol":"NOVOBc",
-"CurrencyCode":"DKK",\
+"CurrencyCode":"DKK"\
+"Shares":15,
+"Product":0,
+"Type":true,
+"Price":505,
+"Date":"2025-03-26T00:00:00Z"
+},{
+"Symbol":"NOVOBc",
+"CurrencyCode":"DKK",
+"Shares":15,
+"Product":0,
+"Type":true,
+"Price":505,
+"Date":"2025-03-26T00:00:00Z"
+}
+]
+
+ +

GET /positions/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,
@@ -94,3 +120,5 @@ Value | Meaning
 
+ +