Module ohlcv_request

Module ohlcv_request 

Source
Expand description

OHLCV request types with Builder pattern OHLCV request types with Builder pattern.

This module provides a type-safe way to construct OHLCV (candlestick) data requests using the Builder pattern with validation.

§Examples

use ccxt_core::types::ohlcv_request::{OhlcvRequest, OhlcvRequestBuilder};

// Create an OHLCV request using the builder
let request = OhlcvRequest::builder()
    .symbol("BTC/USDT")
    .timeframe("1h")
    .limit(100)
    .build()
    .expect("Valid request");

assert_eq!(request.symbol, "BTC/USDT");
assert_eq!(request.timeframe, "1h");
assert_eq!(request.limit, Some(100));

Structs§

OhlcvRequest
OHLCV request configuration built via builder pattern.
OhlcvRequestBuilder
Builder for OhlcvRequest with validation.