@master-chief/alpaca
Advanced tools
Comparing version 1.2.1 to 1.2.2
@@ -238,3 +238,3 @@ import fetch from 'node-fetch' | ||
params: GetAccountActivities | ||
): Promise<Array<NonTradeActivity | TradeActivity>[]> { | ||
): Promise<Array<NonTradeActivity | TradeActivity>> { | ||
return this.request( | ||
@@ -241,0 +241,0 @@ method.GET, |
@@ -132,12 +132,2 @@ export interface Credentials { | ||
export interface NonTradeActivity { | ||
activity_type: string | ||
id: string | ||
date: string | ||
net_amount: string | ||
symbol: string | ||
qty: string | ||
per_share_amount: string | ||
} | ||
export interface Order { | ||
@@ -239,2 +229,12 @@ id: string | ||
export interface NonTradeActivity { | ||
activity_type: string | ||
id: string | ||
date: string | ||
net_amount: string | ||
symbol: string | ||
qty: string | ||
per_share_amount: string | ||
} | ||
export interface TradeUpdate { | ||
@@ -241,0 +241,0 @@ event: string |
@@ -25,5 +25,5 @@ export interface AddToWatchList { | ||
activity_type: string | ||
date?: Date | ||
until?: Date | ||
after?: Date | ||
date?: string | ||
until?: string | ||
after?: string | ||
direction?: 'asc' | 'desc' | ||
@@ -30,0 +30,0 @@ page_size?: number |
{ | ||
"name": "@master-chief/alpaca", | ||
"version": "1.2.1", | ||
"version": "1.2.2", | ||
"description": "A TypeScript Node.js library for the https://alpaca.markets REST API and WebSocket streams.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -40,3 +40,3 @@ import { Account, Order, Position, Asset, Watchlist, Calendar, Clock, AccountConfigurations, NonTradeActivity, TradeActivity, PortfolioHistory, Bar, LastQuote, LastTrade, Credentials } from './entities'; | ||
updateAccountConfigurations(params: UpdateAccountConfigurations): Promise<AccountConfigurations>; | ||
getAccountActivities(params: GetAccountActivities): Promise<Array<NonTradeActivity | TradeActivity>[]>; | ||
getAccountActivities(params: GetAccountActivities): Promise<Array<NonTradeActivity | TradeActivity>>; | ||
getPortfolioHistory(params?: GetPortfolioHistory): Promise<PortfolioHistory>; | ||
@@ -43,0 +43,0 @@ getBars(params: GetBars): Promise<Map<String, Bar[]>>; |
@@ -121,11 +121,2 @@ export interface Credentials { | ||
} | ||
export interface NonTradeActivity { | ||
activity_type: string; | ||
id: string; | ||
date: string; | ||
net_amount: string; | ||
symbol: string; | ||
qty: string; | ||
per_share_amount: string; | ||
} | ||
export interface Order { | ||
@@ -221,2 +212,11 @@ id: string; | ||
} | ||
export interface NonTradeActivity { | ||
activity_type: string; | ||
id: string; | ||
date: string; | ||
net_amount: string; | ||
symbol: string; | ||
qty: string; | ||
per_share_amount: string; | ||
} | ||
export interface TradeUpdate { | ||
@@ -223,0 +223,0 @@ event: string; |
@@ -20,5 +20,5 @@ export interface AddToWatchList { | ||
activity_type: string; | ||
date?: Date; | ||
until?: Date; | ||
after?: Date; | ||
date?: string; | ||
until?: string; | ||
after?: string; | ||
direction?: 'asc' | 'desc'; | ||
@@ -25,0 +25,0 @@ page_size?: number; |
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
53316