Resolve "Implement action fetching for Alpaca" #31

Merged
clbertolini merged 12 commits from 14-implement-action-fetching-for-alpaca into main 2023-11-10 21:36:43 +00:00
2 changed files with 5 additions and 1 deletions
Showing only changes of commit 158c92c4a5 - Show all commits

View File

@ -73,7 +73,6 @@ module.exports = {
"@typescript-eslint/no-shadow": ["error"],
"no-throw-literal": "error",
"no-undef-init": "error",
"no-undefined": "error",
"no-underscore-dangle": "error",
"no-unneeded-ternary": "error",
"no-unused-expressions": "error",

View File

@ -22,7 +22,12 @@ export class AlpacaActionProvider {
readonly fetchActions = (options: ActionFetchOptions): Promise<ActionFetchResponse> => {
return (this.alpaca.getAccountActivities({
activityTypes: "FILL",
until: undefined,
after: undefined,
direction: "desc",
date: undefined,
pageSize: undefined,
pageToken: undefined,
}) as Promise<AlpacaActivity[]>).then((activities) => {
return new ActionFetchResponse(
activities