Package com.qtsurfer.api.client.model
Class LiveSignal
java.lang.Object
com.qtsurfer.api.client.model.LiveSignal
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.24.0")
public class LiveSignal
extends Object
One signal, in the same shape the real-time signal channel delivers.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe stage the run was in when this signal was produced.static enum`paper` items appear only for a run whose `paper.output` is `mix`; they are not relayed over the WebSocket channel. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionemittedAtMs(Long emittedAtMs) booleanReturn true if this LiveSignal object is equal to o.getData()The signal's own free-form payload, what the strategy put there with `signal.set(...)`.Content hash, for checking that two independent deliveries of the same signal agree.Time it was published — always at or after `eventTsMs`.Market time the signal was produced.The instrument the signal is about.getKind()`BUY`/`SELL` for a `hint`, the command name for a `command`; for `paper`, what the item is: `fill`, `trade`, `equity`, `mark`, `kpi` or `gap`.getOrder()Get orderThe parameter set in force when this signal was produced.`true` only for a signal republished to fill a gap in the record.getRunId()Get runIdStable id for this exact signal — dedupe on it across reconnects or overlapping reads.getStage()The stage the run was in when this signal was produced.getType()`paper` items appear only for a run whose `paper.output` is `mix`; they are not relayed over the WebSocket channel.getV()Envelope schema version.inthashCode()instrument(LiveSignalInstrument instrument) order(LiveSignalOrder order) paramsVersion(Integer paramsVersion) putDataItem(String key, Object dataItem) regenerated(Boolean regenerated) voidvoidvoidsetEmittedAtMs(Long emittedAtMs) voidsetEventTsMs(Long eventTsMs) voidsetInstrument(LiveSignalInstrument instrument) voidvoidsetOrder(LiveSignalOrder order) voidsetParamsVersion(Integer paramsVersion) voidsetRegenerated(Boolean regenerated) voidvoidsetSignalId(String signalId) voidsetStage(LiveSignal.StageEnum stage) voidsetType(LiveSignal.TypeEnum type) voidstage(LiveSignal.StageEnum stage) toString()Convert the instance into URL query string.toUrlQueryString(String prefix) Convert the instance into URL query string.type(LiveSignal.TypeEnum type)
-
Field Details
-
JSON_PROPERTY_V
- See Also:
-
JSON_PROPERTY_SIGNAL_ID
- See Also:
-
JSON_PROPERTY_RUN_ID
- See Also:
-
JSON_PROPERTY_STAGE
- See Also:
-
JSON_PROPERTY_PARAMS_VERSION
- See Also:
-
JSON_PROPERTY_TYPE
- See Also:
-
JSON_PROPERTY_KIND
- See Also:
-
JSON_PROPERTY_EVENT_TS_MS
- See Also:
-
JSON_PROPERTY_EMITTED_AT_MS
- See Also:
-
JSON_PROPERTY_INSTRUMENT
- See Also:
-
JSON_PROPERTY_ORDER
- See Also:
-
JSON_PROPERTY_DATA
- See Also:
-
JSON_PROPERTY_REGENERATED
- See Also:
-
JSON_PROPERTY_DIGEST
- See Also:
-
-
Constructor Details
-
LiveSignal
public LiveSignal()
-
-
Method Details
-
v
-
getV
Envelope schema version.- Returns:
- v
-
setV
-
signalId
-
getSignalId
Stable id for this exact signal — dedupe on it across reconnects or overlapping reads.- Returns:
- signalId
-
setSignalId
-
runId
-
getRunId
Get runId- Returns:
- runId
-
setRunId
-
stage
-
getStage
The stage the run was in when this signal was produced.- Returns:
- stage
-
setStage
-
paramsVersion
-
getParamsVersion
The parameter set in force when this signal was produced.- Returns:
- paramsVersion
-
setParamsVersion
-
type
-
getType
`paper` items appear only for a run whose `paper.output` is `mix`; they are not relayed over the WebSocket channel.- Returns:
- type
-
setType
-
kind
-
getKind
`BUY`/`SELL` for a `hint`, the command name for a `command`; for `paper`, what the item is: `fill`, `trade`, `equity`, `mark`, `kpi` or `gap`. Absent otherwise.- Returns:
- kind
-
setKind
-
eventTsMs
-
getEventTsMs
Market time the signal was produced.- Returns:
- eventTsMs
-
setEventTsMs
-
emittedAtMs
-
getEmittedAtMs
Time it was published — always at or after `eventTsMs`.- Returns:
- emittedAtMs
-
setEmittedAtMs
-
instrument
-
getInstrument
The instrument the signal is about. `null` only for a `paper` item about a whole account (`equity`, `mark`, `kpi`), whose `data.currency` names the account.- Returns:
- instrument
-
setInstrument
-
order
-
getOrder
Get order- Returns:
- order
-
setOrder
-
data
-
putDataItem
-
getData
The signal's own free-form payload, what the strategy put there with `signal.set(...)`. Whoever may read the run may read it, so on a `public` run it is public. A signal whose `data` is over 8 KiB (8,192 bytes of its JSON) is not pushed on the WebSocket channel, and `GET /live/{runId}/signals` returns it whole.- Returns:
- data
-
setData
-
regenerated
-
getRegenerated
`true` only for a signal republished to fill a gap in the record.- Returns:
- regenerated
-
setRegenerated
-
digest
-
getDigest
Content hash, for checking that two independent deliveries of the same signal agree.- Returns:
- digest
-
setDigest
-
equals
Return true if this LiveSignal object is equal to o. -
hashCode
public int hashCode() -
toString
-
toUrlQueryString
Convert the instance into URL query string.- Returns:
- URL query string
-
toUrlQueryString
Convert the instance into URL query string.- Parameters:
prefix- prefix of the query string- Returns:
- URL query string
-