Skip to content

Latest commit

 

History

History
93 lines (63 loc) · 2.26 KB

File metadata and controls

93 lines (63 loc) · 2.26 KB

BitMexApi.SchemaApi

All URIs are relative to https://localhost/api/v1

Method HTTP request Description
schemaGet GET /schema Get model schemata for data objects returned by this API.
schemaWebsocketHelp GET /schema/websocketHelp Returns help text & subject list for websocket usage.

schemaGet

Object schemaGet(opts)

Get model schemata for data objects returned by this API.

Example

var BitMexApi = require('bit_mex_api');

var apiInstance = new BitMexApi.SchemaApi();

var opts = { 
  'model': "model_example" // String | Optional model filter. If omitted, will return all models.
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.schemaGet(opts, callback);

Parameters

Name Type Description Notes
model String Optional model filter. If omitted, will return all models. [optional]

Return type

Object

Authorization

No authorization required

HTTP request headers

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

schemaWebsocketHelp

Object schemaWebsocketHelp()

Returns help text & subject list for websocket usage.

Example

var BitMexApi = require('bit_mex_api');

var apiInstance = new BitMexApi.SchemaApi();

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.schemaWebsocketHelp(callback);

Parameters

This endpoint does not need any parameter.

Return type

Object

Authorization

No authorization required

HTTP request headers

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