MCPcopy Create free account
hub / github.com/FinancialComputingUCL/LOBFrame / long

Method long

simulator/trading_agent.py:13–17  ·  view source on GitHub ↗
(self, price, datetime=None)

Source from the content-addressed store, hash-verified

11 self.trading_history = []
12
13 def long(self, price, datetime=None):
14 amount = 1
15 self.long_inventory += amount
16 self.long_price = price
17 self.date_time_entry_long = datetime
18
19 def short(self, price, datetime=None):
20 amount = 1

Callers 1

backtestFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected