#![allow(deprecated)]
#[deprecated(
since = "0.2.0",
note = "Use `ccxt_core::Exchange` instead. This module will be removed in a future version."
)]
pub use ccxt_core::Exchange;
#[deprecated(
since = "0.2.0",
note = "Use `ccxt_core::ExchangeCapabilities` instead. This module will be removed in a future version."
)]
pub use ccxt_core::ExchangeCapabilities;
#[deprecated(
since = "0.2.0",
note = "Use `ccxt_core::BoxedExchange` instead. This module will be removed in a future version."
)]
pub use ccxt_core::BoxedExchange;
#[deprecated(
since = "0.2.0",
note = "Use `ccxt_core::ArcExchange` instead. This module will be removed in a future version."
)]
pub use ccxt_core::ArcExchange;
#[cfg(test)]
#[allow(deprecated)]
mod tests {
use super::*;
#[test]
fn test_deprecated_capabilities_reexport() {
let caps = ExchangeCapabilities::all();
assert!(caps.fetch_ticker());
assert!(caps.create_order());
assert!(caps.websocket());
let public_caps = ExchangeCapabilities::public_only();
assert!(public_caps.fetch_tickers());
assert!(!public_caps.create_order());
assert!(!public_caps.websocket());
}
#[test]
fn test_deprecated_capabilities_has_method() {
let caps = ExchangeCapabilities::all();
assert!(caps.has("fetchTicker"));
assert!(caps.has("createOrder"));
assert!(!caps.has("unknownCapability"));
}
}