All URIs are relative to http://localhost:8000/api/v2
Method | HTTP request | Description |
---|---|---|
getV2Tickers | GET /tickers | Get ticker of all markets. |
getV2TickersMarket | GET /tickers/{market} | Get ticker of specific market. |
{'String': TickerInfo} getV2Tickers()
Get ticker of all markets.
Get ticker of all markets.
var PeatioSdk = require('peatio-sdk');
var defaultClient = PeatioSdk.ApiClient.instance;
// Configure OAuth2 access token for authorization: jwt
var jwt = defaultClient.authentications['jwt'];
jwt.accessToken = 'YOUR ACCESS TOKEN';
var apiInstance = new PeatioSdk.TickersApi();
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.getV2Tickers(callback);
This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json
TickerInfo getV2TickersMarket(market)
Get ticker of specific market.
Get ticker of specific market.
var PeatioSdk = require('peatio-sdk');
var defaultClient = PeatioSdk.ApiClient.instance;
// Configure OAuth2 access token for authorization: jwt
var jwt = defaultClient.authentications['jwt'];
jwt.accessToken = 'YOUR ACCESS TOKEN';
var apiInstance = new PeatioSdk.TickersApi();
var market = "market_example"; // String | Unique market id. It's always in the form of xxxyyy, where xxx is the base currency code, yyy is the quote currency code, e.g. 'btcusd'. All available markets can be found at /api/markets.
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.getV2TickersMarket(market, callback);
Name | Type | Description | Notes |
---|---|---|---|
market | String | Unique market id. It's always in the form of xxxyyy, where xxx is the base currency code, yyy is the quote currency code, e.g. 'btcusd'. All available markets can be found at /api/markets. |
- Content-Type: Not defined
- Accept: application/json