List your organizations and assets
curl --request GET \
--url https://api.glassmarkets.io/v1/organizations/ \
--header 'Authorization: <api-key>'import requests
url = "https://api.glassmarkets.io/v1/organizations/"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://api.glassmarkets.io/v1/organizations/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));[
{
"slug": "example",
"name": "Example Organization",
"assets": [
{
"symbol": "BTC",
"name": "BTC",
"icon_url": "https://s2.coinmarketcap.com/static/img/coins/64x64/1.png",
"role": "market-maker",
"exchanges": [
{
"slug": "binance",
"name": "Binance",
"icon_url": "https://s2.coinmarketcap.com/static/img/exchanges/64x64/630.png",
"pairs": [
"BTC/USDT"
]
},
{
"slug": "coinbasepro",
"name": "Coinbase Pro",
"icon_url": "https://s2.coinmarketcap.com/static/img/exchanges/64x64/89.png",
"pairs": [
"BTC/USD"
]
}
],
"market_makers": [
{
"slug": "example",
"name": "Example Organization"
}
],
"first_date": "2023-08-24T00:00:00Z"
}
]
}
]Organizations
List your organizations and assets
Returns every organization you belong to and its assets. For each asset it gives your role and the exchanges and pairs we track for it. Use symbol as asset, the exchange slug as exchange and an entry of pairs as pair in other requests.
List your organizations and assets
curl --request GET \
--url https://api.glassmarkets.io/v1/organizations/ \
--header 'Authorization: <api-key>'import requests
url = "https://api.glassmarkets.io/v1/organizations/"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://api.glassmarkets.io/v1/organizations/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));[
{
"slug": "example",
"name": "Example Organization",
"assets": [
{
"symbol": "BTC",
"name": "BTC",
"icon_url": "https://s2.coinmarketcap.com/static/img/coins/64x64/1.png",
"role": "market-maker",
"exchanges": [
{
"slug": "binance",
"name": "Binance",
"icon_url": "https://s2.coinmarketcap.com/static/img/exchanges/64x64/630.png",
"pairs": [
"BTC/USDT"
]
},
{
"slug": "coinbasepro",
"name": "Coinbase Pro",
"icon_url": "https://s2.coinmarketcap.com/static/img/exchanges/64x64/89.png",
"pairs": [
"BTC/USD"
]
}
],
"market_makers": [
{
"slug": "example",
"name": "Example Organization"
}
],
"first_date": "2023-08-24T00:00:00Z"
}
]
}
]
