|
Longbridge OpenAPI C++ SDK
|
#include <types.hpp>
Public Types | |
| enum class | Kind { Percent , Spread } |
| Threshold interpretation kind. More... | |
Static Public Member Functions | |
| static GridTrigger | percent (Decimal up, Decimal down) |
Trigger by percent (up, down). More... | |
| static GridTrigger | spread (Decimal up, Decimal down) |
Trigger by absolute price spread (up, down). More... | |
Public Attributes | |
| Kind | kind |
Which interpretation the up / down values use. More... | |
| Decimal | up |
| Upward trigger threshold. More... | |
| Decimal | down |
| Downward trigger threshold. More... | |
How a grid's up/down trigger thresholds are expressed. Percent and spread are mutually exclusive; modeling them together makes the choice explicit (instead of four independent optional fields).
|
strong |
|
inlinestatic |
Trigger by percent (up, down).
|
inlinestatic |
Trigger by absolute price spread (up, down).
| Decimal longbridge::grid::GridTrigger::down |
Downward trigger threshold.
| Kind longbridge::grid::GridTrigger::kind |
Which interpretation the up / down values use.
| Decimal longbridge::grid::GridTrigger::up |
Upward trigger threshold.