Skip to main content

detect

Function detect 

Source
pub fn detect(
    trades: Result<&[Trade], &str>,
    book: Option<(&[OrderBookLevel], &[OrderBookLevel])>,
) -> BotPatterns
Expand description

Runs every signal. trades is the venue’s recent tape, or why there is none. book is the bids and asks of a real exchange book, or None for a synthetic one (a DEX pool’s curve is an even ladder by design).