public interface IStopLossOrder extends IOrderComponent
Modifier and Type | Method and Description |
---|---|
OfferSide |
getOfferSide()
Returns side that is used to check stop loss condition.
|
double |
getPrice()
Returns stop loss price.
|
double |
getTrailingStep()
Returns current trailing step or 0 if no trailing step is set.
|
void |
setPrice(double price)
Sets stop loss price.
|
void |
setPrice(double price,
OfferSide side)
Sets stop loss price.
|
void |
setPrice(double price,
OfferSide side,
double trailingStep)
Sets stop loss price.
|
cancel, getAmount, getComment, getCreationTime, getGoodTillTime, getId, getOrderCommand, setComment, setGoodTillTime, waitForUpdate, waitForUpdate
double getPrice()
void setPrice(double price) throws JFException
getPrice()
method will still return old value until server will accept this changes.
By default, may not be called on the same order more often than once per second (exact value of max order update per second is sent by server).
price
- price to setJFException
- when price change failsvoid setPrice(double price, OfferSide side) throws JFException
getPrice()
method will still return old value until server will accept this changes.
By default, may not be called on the same order more often than once per second (exact value of max order update per second is sent by server).
price
- price to setside
- side that will be used to check stop loss conditionJFException
- when price change failsvoid setPrice(double price, OfferSide side, double trailingStep) throws JFException
getPrice()
method will still return old value until server will accept this changes.
By default, may not be called on the same order more often than once per second (exact value of max order update per second is sent by server).
price
- price to setside
- side that will be used to check stop loss conditiontrailingStep
- if == 0 then adds stop loss order without trailing step; should be 0 or ≥ 10JFException
- if trailingStep is > 0 and < 10OfferSide getOfferSide()
double getTrailingStep()
Copyright © 2024. All rights reserved.