@yash101/schwab-api-client
Version:
A TypeScript client library for interacting with the Charles Schwab Brokerage APIs.
119 lines • 4.2 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.StreamerCommandEnum = exports.StreamerServiceEnum = exports.CommandName = exports.ServiceName = void 0;
var ServiceName;
(function (ServiceName) {
ServiceName["ADMIN"] = "ADMIN";
ServiceName["LEVELONE_EQUITIES"] = "LEVELONE_EQUITIES";
ServiceName["LEVELONE_OPTIONS"] = "LEVELONE_OPTIONS";
ServiceName["LEVELONE_FUTURES"] = "LEVELONE_FUTURES";
ServiceName["LEVELONE_FUTURES_OPTIONS"] = "LEVELONE_FUTURES_OPTIONS";
ServiceName["LEVELONE_FOREX"] = "LEVELONE_FOREX";
ServiceName["NYSE_BOOK"] = "NYSE_BOOK";
ServiceName["NASDAQ_BOOK"] = "NASDAQ_BOOK";
ServiceName["OPTIONS_BOOK"] = "OPTIONS_BOOK";
ServiceName["CHART_EQUITY"] = "CHART_EQUITY";
ServiceName["CHART_FUTURES"] = "CHART_FUTURES";
ServiceName["SCREENER_EQUITY"] = "SCREENER_EQUITY";
ServiceName["SCREENER_OPTION"] = "SCREENER_OPTION";
ServiceName["ACCT_ACTIVITY"] = "ACCT_ACTIVITY";
})(ServiceName || (exports.ServiceName = ServiceName = {}));
var CommandName;
(function (CommandName) {
CommandName["LOGIN"] = "LOGIN";
CommandName["SUBS"] = "SUBS";
CommandName["ADD"] = "ADD";
CommandName["UNSUBS"] = "UNSUBS";
CommandName["VIEW"] = "VIEW";
CommandName["LOGOUT"] = "LOGOUT";
})(CommandName || (exports.CommandName = CommandName = {}));
/**
* Enum representing the various streamer services and their descriptions.
*/
var StreamerServiceEnum;
(function (StreamerServiceEnum) {
/**
* Level 1 Equities - Change
*/
StreamerServiceEnum["LEVELONE_EQUITIES"] = "LEVELONE_EQUITIES";
/**
* Level 1 Options - Change
*/
StreamerServiceEnum["LEVELONE_OPTIONS"] = "LEVELONE_OPTIONS";
/**
* Level 1 Futures - Change
*/
StreamerServiceEnum["LEVELONE_FUTURES"] = "LEVELONE_FUTURES";
/**
* Level 1 Futures Options - Change
*/
StreamerServiceEnum["LEVELONE_FUTURES_OPTIONS"] = "LEVELONE_FUTURES_OPTIONS";
/**
* Level 1 Forex - Change
*/
StreamerServiceEnum["LEVELONE_FOREX"] = "LEVELONE_FOREX";
/**
* Level Two book for Equities - Whole
*/
StreamerServiceEnum["NYSE_BOOK"] = "NYSE_BOOK";
/**
* Level Two book for Equities - Whole
*/
StreamerServiceEnum["NASDAQ_BOOK"] = "NASDAQ_BOOK";
/**
* Level Two book for Options - Whole
*/
StreamerServiceEnum["OPTIONS_BOOK"] = "OPTIONS_BOOK";
/**
* Chart candle for Equities - All Sequence
*/
StreamerServiceEnum["CHART_EQUITY"] = "CHART_EQUITY";
/**
* Chart candle for Futures - All Sequence
*/
StreamerServiceEnum["CHART_FUTURES"] = "CHART_FUTURES";
/**
* Advances and Decliners for Equities - Whole
*/
StreamerServiceEnum["SCREENER_EQUITY"] = "SCREENER_EQUITY";
/**
* Advances and Decliners for Options - Whole
*/
StreamerServiceEnum["SCREENER_OPTION"] = "SCREENER_OPTION";
/**
* Get account activity information such as order fills, etc - All Sequence
*/
StreamerServiceEnum["ACCT_ACTIVITY"] = "ACCT_ACTIVITY";
})(StreamerServiceEnum || (exports.StreamerServiceEnum = StreamerServiceEnum = {}));
/**
* Enum representing the various commands that can be sent to the Schwab Streamer API.
*/
var StreamerCommandEnum;
(function (StreamerCommandEnum) {
/**
* Login command to authenticate with the API.
*/
StreamerCommandEnum["LOGIN"] = "LOGIN";
/**
* Subscribe to a service or data stream.
*/
StreamerCommandEnum["SUBS"] = "SUBS";
/**
* Add additional subscriptions to an existing stream.
*/
StreamerCommandEnum["ADD"] = "ADD";
/**
* Unsubscribe from a service or data stream.
*/
StreamerCommandEnum["UNSUBS"] = "UNSUBS";
/**
* This changes the field subscription for a particular service.
* It will apply to all symbols for that particular service.
*/
StreamerCommandEnum["VIEW"] = "VIEW";
/**
* Logout command to terminate the session.
*/
StreamerCommandEnum["LOGOUT"] = "LOGOUT";
})(StreamerCommandEnum || (exports.StreamerCommandEnum = StreamerCommandEnum = {}));
//# sourceMappingURL=streamer.types.js.map