record_request

Function record_request 

Source
pub async fn record_request(message: String)
Expand description

Records a new request, starting a new interaction

This function starts tracking a new server interaction. Any subsequent calls to record_response will add responses to this interaction until a new request is recorded.

§Arguments

  • message - The request message being sent to the server

§Example

use ibapi::trace;

trace::record_request("REQ|123|AAPL|".to_string()).await;