Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

Commit

Permalink
Build
Browse files Browse the repository at this point in the history
  • Loading branch information
117 committed Apr 6, 2022
1 parent 9e04946 commit d96cdd7
Show file tree
Hide file tree
Showing 17 changed files with 98 additions and 42 deletions.
2 changes: 1 addition & 1 deletion @types/params.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ export interface UpdateWatchList {
symbols?: string[];
}
export interface GetNews {
symbols?: string[];
symbols?: string[] | string;
start?: Date;
end?: Date;
limit?: number;
Expand Down
27 changes: 18 additions & 9 deletions dist/alpaca.browser.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/alpaca.browser.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/alpaca.browser.min.js

Large diffs are not rendered by default.

27 changes: 18 additions & 9 deletions dist/alpaca.browser.modern.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/alpaca.browser.modern.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/alpaca.browser.modern.min.js

Large diffs are not rendered by default.

13 changes: 11 additions & 2 deletions dist/alpaca.bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -86873,7 +86873,13 @@ function number(numStr) {
function trade_update(rawTradeUpdate) {
if (!rawTradeUpdate)
return undefined;
return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({ raw: () => rawTradeUpdate, event: rawTradeUpdate.event, execution_id: rawTradeUpdate.execution_id, order: order(rawTradeUpdate.order) }, rawTradeUpdate.event_id && { event_id: number(rawTradeUpdate.event_id) }), rawTradeUpdate.at && { at: new Date(rawTradeUpdate.at) }), rawTradeUpdate.timestamp && { timestamp: new Date(rawTradeUpdate.timestamp) }), rawTradeUpdate.position_qty && { position_qty: number(rawTradeUpdate.position_qty) }), rawTradeUpdate.price && { price: number(rawTradeUpdate.price) }), rawTradeUpdate.qty && { qty: number(rawTradeUpdate.qty) });
return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({ raw: () => rawTradeUpdate, event: rawTradeUpdate.event, execution_id: rawTradeUpdate.execution_id, order: order(rawTradeUpdate.order) }, (rawTradeUpdate.event_id && {
event_id: number(rawTradeUpdate.event_id),
})), (rawTradeUpdate.at && { at: new Date(rawTradeUpdate.at) })), (rawTradeUpdate.timestamp && {
timestamp: new Date(rawTradeUpdate.timestamp),
})), (rawTradeUpdate.position_qty && {
position_qty: number(rawTradeUpdate.position_qty),
})), (rawTradeUpdate.price && { price: number(rawTradeUpdate.price) })), (rawTradeUpdate.qty && { qty: number(rawTradeUpdate.qty) }));
}
var parse$3 = {
account,
Expand All @@ -86891,7 +86897,7 @@ var parse$3 = {
pageOfBars,
snapshot,
snapshots,
trade_update
trade_update,
};

const unifetch = typeof fetch !== 'undefined' ? fetch : isomorphicUnfetch;
Expand Down Expand Up @@ -87084,6 +87090,9 @@ class AlpacaClient {
});
}
getNews(params) {
if ('symbols' in params && Array.isArray(params.symbols)) {
params.symbols = params.symbols.join(',');
}
return this.request({
method: 'GET',
url: `${urls.rest.beta}/news`,
Expand Down
2 changes: 1 addition & 1 deletion dist/alpaca.bundle.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/alpaca.bundle.min.js

Large diffs are not rendered by default.

13 changes: 11 additions & 2 deletions dist/alpaca.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/alpaca.js.map

Large diffs are not rendered by default.

Loading

0 comments on commit d96cdd7

Please sign in to comment.