orcast 0.2.0

OHLCV-driven options ticker screener (Rust). Fetch daily bars; rank tickers per strategy category.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use crate::error::{OrcastError, Result};
use reqwest::{Client, ClientBuilder};
use std::time::Duration;

pub fn build_http_client() -> Result<Client> {
    let client = ClientBuilder::new()
        .tcp_nodelay(true)
        .pool_max_idle_per_host(4)
        .timeout(Duration::from_millis(10_000))
        .build()
        .map_err(OrcastError::Http)?;
    Ok(client)
}