Update REST API
32
REST-API.md
32
REST-API.md
@@ -82,9 +82,35 @@ Value | Meaning
|
||||
<pre><code class="language-bash">curl -X POST http://localhost:8080/trade/list </code></pre>
|
||||
<pre><code>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"
|
||||
}
|
||||
]
|
||||
</code></pre>
|
||||
|
||||
<h3><code>GET /positions/list</code></h3>
|
||||
<p>getting a list of trades in the db</p>
|
||||
<pre><code class="language-bash">curl -X POST http://localhost:8080/trade/list </code></pre>
|
||||
<pre><code>return:
|
||||
|
||||
{
|
||||
|
||||
"Symbol":"NOVOBc",
|
||||
"CurrencyCode":"DKK",
|
||||
"Shares":15,
|
||||
"Product":0,
|
||||
"Type":true,
|
||||
@@ -94,3 +120,5 @@ Value | Meaning
|
||||
</code></pre>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user