Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@master-chief/alpaca

Package Overview
Dependencies
Maintainers
1
Versions
86
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@master-chief/alpaca - npm Package Compare versions

Comparing version 1.2.1 to 1.2.2

2

lib/client.ts

@@ -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;

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc