Add order/position management
Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
@@ -62,13 +62,12 @@ pub async fn add(
|
||||
if !asset.tradable || !asset.fractionable {
|
||||
return Err(StatusCode::FORBIDDEN);
|
||||
}
|
||||
let asset = Asset::from(asset);
|
||||
|
||||
create_send_await!(
|
||||
data_sender,
|
||||
threads::data::Message::new,
|
||||
threads::data::Action::Add,
|
||||
vec![(asset.symbol, asset.class)]
|
||||
vec![(asset.symbol, asset.class.into())]
|
||||
);
|
||||
|
||||
Ok(StatusCode::CREATED)
|
||||
|
Reference in New Issue
Block a user