@master-chief/alpaca
Advanced tools
Comparing version 3.3.3 to 3.4.0
{ | ||
"name": "@master-chief/alpaca", | ||
"version": "3.3.3", | ||
"version": "3.4.0", | ||
"description": "a TypeScript Node.js library for the https://alpaca.markets REST API and WebSocket streams", | ||
@@ -5,0 +5,0 @@ "author": "master-chief", |
@@ -5,3 +5,10 @@ import WebSocket from 'ws' | ||
import { EventEmitter } from 'events' | ||
import { Credentials } from './entities.js' | ||
import { | ||
AccountUpdate, | ||
AggregateMinute, | ||
Credentials, | ||
Quote, | ||
Trade, | ||
TradeUpdate, | ||
} from './entities.js' | ||
@@ -25,7 +32,7 @@ export declare interface AlpacaStream { | ||
message: (data: Object) => void | ||
trade: (data: Object) => void | ||
trade_updates: (data: Object) => void | ||
account_updates: (data: Object) => void | ||
quote: (data: Object) => void | ||
aggregate_minute: (data: Object) => void | ||
trade: (data: Trade) => void | ||
trade_updates: (data: TradeUpdate) => void | ||
account_updates: (data: AccountUpdate) => void | ||
quote: (data: Quote) => void | ||
aggregate_minute: (data: AggregateMinute) => void | ||
} | ||
@@ -32,0 +39,0 @@ |
/// <reference types="node" /> | ||
import { EventEmitter } from 'events'; | ||
import { Credentials } from './entities.js'; | ||
import { AccountUpdate, AggregateMinute, Credentials, Quote, Trade, TradeUpdate } from './entities.js'; | ||
export declare interface AlpacaStream { | ||
@@ -14,7 +14,7 @@ on<U extends keyof AlpacaStreamEvents>(event: U, listener: AlpacaStreamEvents[U]): this; | ||
message: (data: Object) => void; | ||
trade: (data: Object) => void; | ||
trade_updates: (data: Object) => void; | ||
account_updates: (data: Object) => void; | ||
quote: (data: Object) => void; | ||
aggregate_minute: (data: Object) => void; | ||
trade: (data: Trade) => void; | ||
trade_updates: (data: TradeUpdate) => void; | ||
account_updates: (data: AccountUpdate) => void; | ||
quote: (data: Quote) => void; | ||
aggregate_minute: (data: AggregateMinute) => void; | ||
} | ||
@@ -21,0 +21,0 @@ export declare class AlpacaStream extends EventEmitter { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
157598
4796