List an account's positions
curl --request GET \
--url https://gateway-sandbox.matambaintelligence.com/v1/accounts/{account}/positions \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://gateway-sandbox.matambaintelligence.com/v1/accounts/{account}/positions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://gateway-sandbox.matambaintelligence.com/v1/accounts/{account}/positions"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://gateway-sandbox.matambaintelligence.com/v1/accounts/{account}/positions"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"object": "list",
"has_more": false,
"next_cursor": null,
"data": [
{
"object": "position",
"symbol": "DANGCEM",
"name": "DANGCEM",
"asset_class": "Stock",
"sector": null,
"industry": null,
"quantity": 10,
"average_cost_kobo_decimal": "47500",
"market_price_kobo": 47500,
"market_value_kobo": 475000
}
]
}List an account's positions
Returns the account’s positions as the broker reports them. Takes no query parameters. Requires the read scope.
GET
/
v1
/
accounts
/
{account}
/
positions
List an account's positions
curl --request GET \
--url https://gateway-sandbox.matambaintelligence.com/v1/accounts/{account}/positions \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://gateway-sandbox.matambaintelligence.com/v1/accounts/{account}/positions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://gateway-sandbox.matambaintelligence.com/v1/accounts/{account}/positions"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://gateway-sandbox.matambaintelligence.com/v1/accounts/{account}/positions"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"object": "list",
"has_more": false,
"next_cursor": null,
"data": [
{
"object": "position",
"symbol": "DANGCEM",
"name": "DANGCEM",
"asset_class": "Stock",
"sector": null,
"industry": null,
"quantity": 10,
"average_cost_kobo_decimal": "47500",
"market_price_kobo": 47500,
"market_value_kobo": 475000
}
]
}Authorizations
Path Parameters
Response
All of the account's positions.