tensortrade.oms.services.slippage.slippage_model module¶
- class tensortrade.oms.services.slippage.slippage_model.SlippageModel(*args, **kwargs)[source]¶
Bases:
Component
A model for simulating slippage on an exchange trade.
- abstract adjust_trade(trade: Trade, **kwargs) Trade [source]¶
Simulate slippage on a trade ordered on a specific exchange.
- Parameters:
trade (Trade) – The trade executed on the exchange.
**kwargs (keyword arguments) – Any other arguments necessary for the model.
- Returns:
Trade – A filled trade with the price and size adjusted for slippage.
- registered_name = 'slippage'¶