ExchangeOperations
Documentation for ExchangeOperations.
ExchangeOperations.profitExchangeOperations.send!ExchangeOperations.send!ExchangeOperations.send!ExchangeOperations.update!
ExchangeOperations.profit — Method
profit(a::Number, b::Number, q::Number) -> Any
This is a utility function to help calculate profit or loss.
ExchangeOperations.send! — Method
send!(
x::SimulatorSession,
op::AbstractOperation
) -> SimulatorSession
This is a catchall send method to warn about unimplemented simulator operations.
ExchangeOperations.send! — Method
send!(
s::SimulatorSession,
buy::SimulatorMarketBuy
) -> SimulatorSession
Send a market buy order to the simulator.
ExchangeOperations.send! — Method
send!(
s::SimulatorSession,
sell::SimulatorMarketSell
) -> SimulatorSession
Send a market sell order to the simulator.
ExchangeOperations.update! — Method
update!(
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.