use crate::{asset_id::AssetId, exchange_id::ExchangeId};
pub type Portfolio = Box<dyn PortfolioTrait>;
pub trait PortfolioTrait {
fn has_account_in_exchange(&self, exchange_id: &ExchangeId) -> bool;
fn owns_asset(&self, asset_id: &AssetId) -> bool;
fn owns_asset_in_exchange(&self, asset_id: &AssetId, exchange_id: &ExchangeId) -> bool;
fn asset_total(&self, asset_id: &AssetId) -> f64;
fn asset_in_exchange(&self, asset_id: &AssetId, exchange_id: &ExchangeId) -> f64;
}