Get a list of Spot Markets
OK response.
Spot Markets list
const response = await fetch('https://inj-indexer.nownodes.io/api/exchange/spot/v1/markets', {
method: 'GET',
headers: {},
});
const data = await response.json();
{
"markets": [
{
"baseDenom": "inj",
"baseTokenMeta": {
"address": "0xdAC17F958D2ee523a2206206994597C13D831ec7",
"decimals": 18,
"logo": "https://static.alchemyapi.io/images/assets/825.png",
"name": "Tether",
"symbol": "USDT",
"updatedAt": 1544614248000
},
"makerFeeRate": "0.001",
"marketId": "0x3bdb3d8b5eb4d362371b72cf459216553d74abdb55eb0208091f7777dd85c8bb",
"marketStatus": "active",
"minPriceTickSize": "0.001",
"minQuantityTickSize": "0.001",
"quoteDenom": "peggy0xdAC17F958D2ee523a2206206994597C13D831ec7",
"quoteTokenMeta": {
"address": "0xdAC17F958D2ee523a2206206994597C13D831ec7",
"decimals": 18,
"logo": "https://static.alchemyapi.io/images/assets/825.png",
"name": "Tether",
"symbol": "USDT",
"updatedAt": 1544614248000
},
"serviceProviderFee": "0.4",
"takerFeeRate": "0.002",
"ticker": "INJ/USDC"
},
{
"baseDenom": "inj",
"baseTokenMeta": {
"address": "0xdAC17F958D2ee523a2206206994597C13D831ec7",
"decimals": 18,
"logo": "https://static.alchemyapi.io/images/assets/825.png",
"name": "Tether",
"symbol": "USDT",
"updatedAt": 1544614248000
},
"makerFeeRate": "0.001",
"marketId": "0x3bdb3d8b5eb4d362371b72cf459216553d74abdb55eb0208091f7777dd85c8bb",
"marketStatus": "active",
"minPriceTickSize": "0.001",
"minQuantityTickSize": "0.001",
"quoteDenom": "peggy0xdAC17F958D2ee523a2206206994597C13D831ec7",
"quoteTokenMeta": {
"address": "0xdAC17F958D2ee523a2206206994597C13D831ec7",
"decimals": 18,
"logo": "https://static.alchemyapi.io/images/assets/825.png",
"name": "Tether",
"symbol": "USDT",
"updatedAt": 1544614248000
},
"serviceProviderFee": "0.4",
"takerFeeRate": "0.002",
"ticker": "INJ/USDC"
},
{
"baseDenom": "inj",
"baseTokenMeta": {
"address": "0xdAC17F958D2ee523a2206206994597C13D831ec7",
"decimals": 18,
"logo": "https://static.alchemyapi.io/images/assets/825.png",
"name": "Tether",
"symbol": "USDT",
"updatedAt": 1544614248000
},
"makerFeeRate": "0.001",
"marketId": "0x3bdb3d8b5eb4d362371b72cf459216553d74abdb55eb0208091f7777dd85c8bb",
"marketStatus": "active",
"minPriceTickSize": "0.001",
"minQuantityTickSize": "0.001",
"quoteDenom": "peggy0xdAC17F958D2ee523a2206206994597C13D831ec7",
"quoteTokenMeta": {
"address": "0xdAC17F958D2ee523a2206206994597C13D831ec7",
"decimals": 18,
"logo": "https://static.alchemyapi.io/images/assets/825.png",
"name": "Tether",
"symbol": "USDT",
"updatedAt": 1544614248000
},
"serviceProviderFee": "0.4",
"takerFeeRate": "0.002",
"ticker": "INJ/USDC"
},
{
"baseDenom": "inj",
"baseTokenMeta": {
"address": "0xdAC17F958D2ee523a2206206994597C13D831ec7",
"decimals": 18,
"logo": "https://static.alchemyapi.io/images/assets/825.png",
"name": "Tether",
"symbol": "USDT",
"updatedAt": 1544614248000
},
"makerFeeRate": "0.001",
"marketId": "0x3bdb3d8b5eb4d362371b72cf459216553d74abdb55eb0208091f7777dd85c8bb",
"marketStatus": "active",
"minPriceTickSize": "0.001",
"minQuantityTickSize": "0.001",
"quoteDenom": "peggy0xdAC17F958D2ee523a2206206994597C13D831ec7",
"quoteTokenMeta": {
"address": "0xdAC17F958D2ee523a2206206994597C13D831ec7",
"decimals": 18,
"logo": "https://static.alchemyapi.io/images/assets/825.png",
"name": "Tether",
"symbol": "USDT",
"updatedAt": 1544614248000
},
"serviceProviderFee": "0.4",
"takerFeeRate": "0.002",
"ticker": "INJ/USDC"
}
]
}
Get details of a single spot market
MarketId of the market we want to fetch
"0x3bdb3d8b5eb4d362371b72cf459216553d74abdb55eb0208091f7777dd85c8bb"
^0x[0-9a-fA-F]{64}$
OK response.
const response = await fetch('https://inj-indexer.nownodes.io/api/exchange/spot/v1/markets/{marketId}', {
method: 'GET',
headers: {},
});
const data = await response.json();
{
"market": {
"baseDenom": "inj",
"baseTokenMeta": {
"address": "0xdAC17F958D2ee523a2206206994597C13D831ec7",
"decimals": 18,
"logo": "https://static.alchemyapi.io/images/assets/825.png",
"name": "Tether",
"symbol": "USDT",
"updatedAt": 1544614248000
},
"makerFeeRate": "0.001",
"marketId": "0x3bdb3d8b5eb4d362371b72cf459216553d74abdb55eb0208091f7777dd85c8bb",
"marketStatus": "active",
"minPriceTickSize": "0.001",
"minQuantityTickSize": "0.001",
"quoteDenom": "peggy0xdAC17F958D2ee523a2206206994597C13D831ec7",
"quoteTokenMeta": {
"address": "0xdAC17F958D2ee523a2206206994597C13D831ec7",
"decimals": 18,
"logo": "https://static.alchemyapi.io/images/assets/825.png",
"name": "Tether",
"symbol": "USDT",
"updatedAt": 1544614248000
},
"serviceProviderFee": "0.4",
"takerFeeRate": "0.002",
"ticker": "INJ/USDC"
}
}