IbkrApi.Support.HTTPStubs.TradeStub (ibkr_api v1.0.3)

View Source

Stub module for IbkrApi.ClientPortal.Trade HTTP requests.

Summary

Functions

Stubs the list_trades endpoint.

Functions

stub_list_trades(response_fn \\ nil)

Stubs the list_trades endpoint.

Examples

TradeStub.stub_list_trades()
# Or with custom response:
TradeStub.stub_list_trades(HTTPMock.success([%{symbol: "MSFT", side: "SELL", size: 50}]))