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. |
Object schemaGet(opts)
Get model schemata for data objects returned by this API.
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);
Name | Type | Description | Notes |
---|---|---|---|
model | String | Optional model filter. If omitted, will return all models. | [optional] |
Object
No authorization required
- Content-Type: application/json, application/x-www-form-urlencoded
- Accept: application/json, application/xml, text/xml, application/javascript, text/javascript
Object schemaWebsocketHelp()
Returns help text & subject list for websocket usage.
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);
This endpoint does not need any parameter.
Object
No authorization required
- Content-Type: application/json, application/x-www-form-urlencoded
- Accept: application/json, application/xml, text/xml, application/javascript, text/javascript