Investments
Retrieving investment information
r = requests.get(
f'{URL}/issuer/v2/investments/?product_id={product_id}',
headers={**headers}
)
assert r.status_code < 300, r.content
investment_id = r.json()['results'][0]['id']
r = requests.get(
f'{URL}/issuer/v2/investments/{investment_id}/',
headers={**headers}
)
assert r.status_code < 300, r.content
print(f'Investment: {r.json()['id']}')Last updated
Was this helpful?