ExchangeOperations
Documentation for ExchangeOperations.
ExchangeOperations.profit
ExchangeOperations.send!
ExchangeOperations.send!
ExchangeOperations.send!
ExchangeOperations.update!
ExchangeOperations.profit
— Methodprofit(a::Number, b::Number, q::Number) -> Any
This is a utility function to help calculate profit or loss.
ExchangeOperations.send!
— Methodsend!(
x::SimulatorSession,
op::AbstractOperation
) -> SimulatorSession
This is a catchall send method to warn about unimplemented simulator operations.
ExchangeOperations.send!
— Methodsend!(
s::SimulatorSession,
buy::SimulatorMarketBuy
) -> SimulatorSession
Send a market buy order to the simulator.
ExchangeOperations.send!
— Methodsend!(
s::SimulatorSession,
sell::SimulatorMarketSell
) -> SimulatorSession
Send a market sell order to the simulator.
ExchangeOperations.update!
— Methodupdate!(
s::SimulatorSession,
ts::Dates.DateTime,
next_price::Float64
)
Update the current time and current price of the asset in the simulator session. This also checks to see if stop orders should be triggered, and executes them if they should.