Return information on all available pairs
curl --request GET \
--url http://api.oasisdex.com/v1/pairs/
200 OK
{
"data":
{
"MKR/ETH":
{
"base": "MKR", // Base
"quote": "ETH", // Quote
"basePrecision": "18", // Decimal base precision
"quotePrecision": "18", // Decimal quote precision
"active": true, // Whether or not trading is enabled
},
"ETH/DAI":
{
"base": "ETH",
"quote": "DAI",
"basePrecision": "18",
"quotePrecision": "18",
"active": true,
},
...
},
"time": 1513379816, // Unix timestamp at which info was valid
"message": "success" // Status message
}
Return information for a specific pair
curl --request GET \
--url http://api.oasisdex.com/v1/pairs/mkr/eth
200 OK
{
"data":
{
"base": "MKR", // Base
"quote": "ETH", // Quote
"basePrecision": "18", // Decimal base precision
"quotePrecision": "18", // Decimal quote precision
"active": true, // Whether or not trading is enabled
},
"time": 1513379816, // Unix timestamp at which info was valid
"message": "success" // Status message
}
400 Bad Request
{
"data": {},
"time": 1513379816,
"message": "Unknown pair"
}