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.
import BitMexApi from 'bit_mex_api';
let apiInstance = new BitMexApi.SchemaApi();
let opts = {
'model': "model_example" // String | Optional model filter. If omitted, will return all models.
};
apiInstance.schemaGet(opts, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});| 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.
import BitMexApi from 'bit_mex_api';
let apiInstance = new BitMexApi.SchemaApi();
apiInstance.schemaWebsocketHelp((error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});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