All URIs are relative to http://localhost:8000/api/v2
Method | HTTP request | Description |
---|---|---|
getV2Order | GET /order | Get information of specified order. |
postV2OrderDelete | POST /order/delete | Cancel an order. |
getV2Order(id)
Get information of specified order.
Get information of specified order.
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.OrderApi();
var id = 56; // Number | Unique order id.
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
};
apiInstance.getV2Order(id, callback);
Name | Type | Description | Notes |
---|---|---|---|
id | Number | Unique order id. |
null (empty response body)
- Content-Type: Not defined
- Accept: application/json
postV2OrderDelete(id)
Cancel an order.
Cancel an order.
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.OrderApi();
var id = 56; // Number | Unique order id.
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
};
apiInstance.postV2OrderDelete(id, callback);
Name | Type | Description | Notes |
---|---|---|---|
id | Number | Unique order id. |
null (empty response body)
- Content-Type: application/json, application/x-www-form-urlencoded
- Accept: application/json