Add shared lib
Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
use crate::{
|
||||
config::Config,
|
||||
config::{Config, ALPACA_API_BASE},
|
||||
create_send_await, database, threads,
|
||||
types::{alpaca, Asset},
|
||||
};
|
||||
use axum::{extract::Path, Extension, Json};
|
||||
use http::StatusCode;
|
||||
use qrust::types::{alpaca, Asset};
|
||||
use serde::{Deserialize, Serialize};
|
||||
use std::{
|
||||
collections::{HashMap, HashSet},
|
||||
@@ -74,6 +74,7 @@ pub async fn add(
|
||||
&config.alpaca_rate_limiter,
|
||||
&request.symbols,
|
||||
None,
|
||||
&ALPACA_API_BASE,
|
||||
)
|
||||
.await
|
||||
.map_err(|e| {
|
||||
@@ -147,6 +148,7 @@ pub async fn add_symbol(
|
||||
&config.alpaca_rate_limiter,
|
||||
&symbol,
|
||||
None,
|
||||
&ALPACA_API_BASE,
|
||||
)
|
||||
.await
|
||||
.map_err(|e| {
|
||||
|
Reference in New Issue
Block a user