Add order types

Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
2024-02-12 16:45:11 +00:00
parent dee21d5324
commit 5961717520
47 changed files with 840 additions and 145 deletions

View File

@@ -6,7 +6,7 @@ use crate::{
alpaca::{
self,
api::{self, outgoing::Sort},
Source,
shared::Source,
},
news::Prediction,
Backfill, Bar, Class, News,
@@ -248,7 +248,7 @@ impl Handler for BarHandler {
async fn backfill(&self, symbol: String, fetch_from: OffsetDateTime, fetch_to: OffsetDateTime) {
info!("Backfilling bars for {}.", symbol);
let mut bars = Vec::new();
let mut bars = vec![];
let mut next_page_token = None;
loop {
@@ -348,7 +348,7 @@ impl Handler for NewsHandler {
async fn backfill(&self, symbol: String, fetch_from: OffsetDateTime, fetch_to: OffsetDateTime) {
info!("Backfilling news for {}.", symbol);
let mut news = Vec::new();
let mut news = vec![];
let mut next_page_token = None;
loop {