use crate::domain::market::OrderHistory;
use crate::Result;
use crate::{domain::market::Order, ApiClient};
pub async fn orders(client: &ApiClient, char_id: usize) -> Result<Option<Vec<Order>>> {
client
.query_esi(format!("characters/{}/orders", char_id))
.await
}
pub async fn orders_history(
client: &ApiClient,
char_id: usize,
) -> Result<Option<Vec<OrderHistory>>> {
client
.query_esi(format!("characters/{}/orders/history", char_id))
.await
}