mirror of
https://github.com/RomySaputraSihananda/ares.git
synced 2026-08-05 15:07:47 +00:00
a78dd26cf0
Vendor domain and mt5-client from hermes into crates/ so the repo can be pushed to GitHub without external path dependencies. Also includes all bug fixes from autonomous session: - impulse SL fix (SL at impulse candle low/high, not zone edge) - pip_size fix for 5-decimal pairs - fill_ok premature cancellation fix - TIMEOUT_CANDLES, MIN_FVG_PIPS, MIN_SL_PIPS env vars Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
15 lines
380 B
Rust
15 lines
380 B
Rust
#[derive(Debug, thiserror::Error)]
|
|
pub enum Mt5Error {
|
|
#[error("request failed: {0}")]
|
|
Http(#[from] reqwest::Error),
|
|
|
|
#[error("bridge error ({status}): {detail}")]
|
|
Api { status: u16, detail: String },
|
|
|
|
#[error("response parse failed: {0}")]
|
|
Parse(#[from] serde_json::Error),
|
|
|
|
#[error("empty response for {endpoint}")]
|
|
Empty { endpoint: String },
|
|
}
|