Skip to content

Latest commit

 

History

History
112 lines (74 loc) · 2.37 KB

OrderApi.md

File metadata and controls

112 lines (74 loc) · 2.37 KB

PeatioSdk.OrderApi

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

getV2Order(id)

Get information of specified order.

Get information of specified order.

Example

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);

Parameters

Name Type Description Notes
id Number Unique order id.

Return type

null (empty response body)

Authorization

jwt

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

postV2OrderDelete

postV2OrderDelete(id)

Cancel an order.

Cancel an order.

Example

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);

Parameters

Name Type Description Notes
id Number Unique order id.

Return type

null (empty response body)

Authorization

jwt

HTTP request headers

  • Content-Type: application/json, application/x-www-form-urlencoded
  • Accept: application/json