eve-esi-api 0.0.4

This library provides an authentication to Eve-esi API and some endpoints to call.
Documentation
use crate::domain::market::OrderHistory;
use crate::Result;
use crate::{domain::market::Order, ApiClient};

/// get the market orders issued by char_id. Character id for logged user is retrieved in EveApi instance : eve_api.character().character_id
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
}