Market gets details of a single derivative 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/derivative/v1/markets/{marketId}', {
method: 'GET',
headers: {},
});
const data = await response.json();
{
"market": {
"expiryFuturesMarketInfo": {
"expirationTimestamp": 1544614248,
"settlementPrice": "0.05"
},
"initialMarginRatio": "0.05",
"isPerpetual": true,
"maintenanceMarginRatio": "0.025",
"makerFeeRate": "0.001",
"marketId": "0x3bdb3d8b5eb4d362371b72cf459216553d74abdb55eb0208091f7777dd85c8bb",
"marketStatus": "active",
"minPriceTickSize": "0.001",
"minQuantityTickSize": "0.001",
"oracleBase": "inj-band",
"oracleQuote": "usdt-band",
"oracleScaleFactor": 6,
"oracleType": "band",
"perpetualMarketFunding": {
"cumulativeFunding": "0.05",
"cumulativePrice": "-22.93180251",
"lastTimestamp": 1622930400
},
"perpetualMarketInfo": {
"fundingInterval": 3600,
"hourlyFundingRateCap": "0.000625",
"hourlyInterestRate": "0.00000416666",
"nextFundingTimestamp": 1622930400
},
"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"
}
}
Markets gets a list of Derivative Markets
OK response.
Derivative Markets list
const response = await fetch('https://inj-indexer.nownodes.io/api/exchange/derivative/v1/markets', {
method: 'GET',
headers: {},
});
const data = await response.json();
{
"markets": [
{
"expiryFuturesMarketInfo": {
"expirationTimestamp": 1544614248,
"settlementPrice": "0.05"
},
"initialMarginRatio": "0.05",
"isPerpetual": true,
"maintenanceMarginRatio": "0.025",
"makerFeeRate": "0.001",
"marketId": "0x3bdb3d8b5eb4d362371b72cf459216553d74abdb55eb0208091f7777dd85c8bb",
"marketStatus": "active",
"minPriceTickSize": "0.001",
"minQuantityTickSize": "0.001",
"oracleBase": "inj-band",
"oracleQuote": "usdt-band",
"oracleScaleFactor": 6,
"oracleType": "band",
"perpetualMarketFunding": {
"cumulativeFunding": "0.05",
"cumulativePrice": "-22.93180251",
"lastTimestamp": 1622930400
},
"perpetualMarketInfo": {
"fundingInterval": 3600,
"hourlyFundingRateCap": "0.000625",
"hourlyInterestRate": "0.00000416666",
"nextFundingTimestamp": 1622930400
},
"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"
},
{
"expiryFuturesMarketInfo": {
"expirationTimestamp": 1544614248,
"settlementPrice": "0.05"
},
"initialMarginRatio": "0.05",
"isPerpetual": true,
"maintenanceMarginRatio": "0.025",
"makerFeeRate": "0.001",
"marketId": "0x3bdb3d8b5eb4d362371b72cf459216553d74abdb55eb0208091f7777dd85c8bb",
"marketStatus": "active",
"minPriceTickSize": "0.001",
"minQuantityTickSize": "0.001",
"oracleBase": "inj-band",
"oracleQuote": "usdt-band",
"oracleScaleFactor": 6,
"oracleType": "band",
"perpetualMarketFunding": {
"cumulativeFunding": "0.05",
"cumulativePrice": "-22.93180251",
"lastTimestamp": 1622930400
},
"perpetualMarketInfo": {
"fundingInterval": 3600,
"hourlyFundingRateCap": "0.000625",
"hourlyInterestRate": "0.00000416666",
"nextFundingTimestamp": 1622930400
},
"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"
},
{
"expiryFuturesMarketInfo": {
"expirationTimestamp": 1544614248,
"settlementPrice": "0.05"
},
"initialMarginRatio": "0.05",
"isPerpetual": true,
"maintenanceMarginRatio": "0.025",
"makerFeeRate": "0.001",
"marketId": "0x3bdb3d8b5eb4d362371b72cf459216553d74abdb55eb0208091f7777dd85c8bb",
"marketStatus": "active",
"minPriceTickSize": "0.001",
"minQuantityTickSize": "0.001",
"oracleBase": "inj-band",
"oracleQuote": "usdt-band",
"oracleScaleFactor": 6,
"oracleType": "band",
"perpetualMarketFunding": {
"cumulativeFunding": "0.05",
"cumulativePrice": "-22.93180251",
"lastTimestamp": 1622930400
},
"perpetualMarketInfo": {
"fundingInterval": 3600,
"hourlyFundingRateCap": "0.000625",
"hourlyInterestRate": "0.00000416666",
"nextFundingTimestamp": 1622930400
},
"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"
},
{
"expiryFuturesMarketInfo": {
"expirationTimestamp": 1544614248,
"settlementPrice": "0.05"
},
"initialMarginRatio": "0.05",
"isPerpetual": true,
"maintenanceMarginRatio": "0.025",
"makerFeeRate": "0.001",
"marketId": "0x3bdb3d8b5eb4d362371b72cf459216553d74abdb55eb0208091f7777dd85c8bb",
"marketStatus": "active",
"minPriceTickSize": "0.001",
"minQuantityTickSize": "0.001",
"oracleBase": "inj-band",
"oracleQuote": "usdt-band",
"oracleScaleFactor": 6,
"oracleType": "band",
"perpetualMarketFunding": {
"cumulativeFunding": "0.05",
"cumulativePrice": "-22.93180251",
"lastTimestamp": 1622930400
},
"perpetualMarketInfo": {
"fundingInterval": 3600,
"hourlyFundingRateCap": "0.000625",
"hourlyInterestRate": "0.00000416666",
"nextFundingTimestamp": 1622930400
},
"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"
}
]
}