Package com.qtsurfer.api.client.model
Class Dataset
java.lang.Object
com.qtsurfer.api.client.model.Dataset
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.24.0")
public class Dataset
extends Object
A dataset's own metadata — not its data. `currentVersionId` is what a prepare against `exchangeId: user` reads by default; see `DatasetVersion` for what a version carries. `from`/`to`/`cadence`/`timestampUnit`/`bytes`/`rows`/`gaps`/`largestGapSteps` mirror that current version's own discovered range, cadence, timestamp unit and metrics, so you don't need a second call to `GET /datasets/{datasetId}/uploads/{uploadId}` just to see what a dataset covers.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum* `ready` — `currentVersionId` is set; `from`/`to`/`cadence`/`bytes`/`rows`/`gaps`/ `largestGapSteps` describe it.static enum`currentVersionId`'s own timestamp unit (see `DatasetVersion.timestampUnit`) — decode the `timestamp` column of `dataUrl`'s file accordingly.static enumWhat the rows of the current version are, decided when the version became `ready`. -
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 Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreatedAt(OffsetDateTime createdAt) currentVersionId(String currentVersionId) deletedAt(OffsetDateTime deletedAt) booleanReturn true if this Dataset object is equal to o.from(OffsetDateTime from) getBytes()Size of `currentVersionId`'s own stored file.`currentVersionId`'s own discovered cadence — a fixed grid (e.g.When the dataset was created.The id of the most recently finalized, successfully ingested version.Opaque id, returned by `POST /datasets`.When you deleted this dataset.getError()A human-readable reason the most recent upload/import attempt failed.getFrom()Start of `currentVersionId`'s own data range, as discovered at ingest time.getGaps()`currentVersionId`'s own gap count at its discovered cadence.Exchange instrument identifier (e.g.`currentVersionId`'s own largest gap, in units of its discovered cadence step.getName()Unique among your datasets.getRows()`currentVersionId`'s own row count.* `ready` — `currentVersionId` is set; `from`/`to`/`cadence`/`bytes`/`rows`/`gaps`/ `largestGapSteps` describe it.`currentVersionId`'s own timestamp unit (see `DatasetVersion.timestampUnit`) — decode the `timestamp` column of `dataUrl`'s file accordingly.getTo()End of `currentVersionId`'s own data range, as discovered at ingest time.getType()What the rows of the current version are, decided when the version became `ready`.When `currentVersionId` last changed.inthashCode()instrument(String instrument) largestGapSteps(Integer largestGapSteps) voidvoidsetCadence(String cadence) voidsetCreatedAt(OffsetDateTime createdAt) voidsetCurrentVersionId(String currentVersionId) voidsetDatasetId(String datasetId) voidsetDeletedAt(OffsetDateTime deletedAt) voidvoidsetFrom(OffsetDateTime from) voidvoidsetInstrument(String instrument) voidsetLargestGapSteps(Integer largestGapSteps) voidvoidvoidsetStatus(Dataset.StatusEnum status) voidsetTimestampUnit(Dataset.TimestampUnitEnum timestampUnit) voidsetTo(OffsetDateTime to) voidsetType(Dataset.TypeEnum type) voidsetUpdatedAt(OffsetDateTime updatedAt) status(Dataset.StatusEnum status) timestampUnit(Dataset.TimestampUnitEnum timestampUnit) to(OffsetDateTime to) toString()Convert the instance into URL query string.toUrlQueryString(String prefix) Convert the instance into URL query string.type(Dataset.TypeEnum type) updatedAt(OffsetDateTime updatedAt)
-
Field Details
-
JSON_PROPERTY_DATASET_ID
- See Also:
-
JSON_PROPERTY_NAME
- See Also:
-
JSON_PROPERTY_TYPE
- See Also:
-
JSON_PROPERTY_INSTRUMENT
- See Also:
-
JSON_PROPERTY_CREATED_AT
- See Also:
-
JSON_PROPERTY_CURRENT_VERSION_ID
- See Also:
-
JSON_PROPERTY_DELETED_AT
- See Also:
-
JSON_PROPERTY_UPDATED_AT
- See Also:
-
JSON_PROPERTY_FROM
- See Also:
-
JSON_PROPERTY_TO
- See Also:
-
JSON_PROPERTY_CADENCE
- See Also:
-
JSON_PROPERTY_TIMESTAMP_UNIT
- See Also:
-
JSON_PROPERTY_STATUS
- See Also:
-
JSON_PROPERTY_BYTES
- See Also:
-
JSON_PROPERTY_ROWS
- See Also:
-
JSON_PROPERTY_GAPS
- See Also:
-
JSON_PROPERTY_LARGEST_GAP_STEPS
- See Also:
-
JSON_PROPERTY_ERROR
- See Also:
-
-
Constructor Details
-
Dataset
public Dataset()
-
-
Method Details
-
datasetId
-
getDatasetId
Opaque id, returned by `POST /datasets`.- Returns:
- datasetId
-
setDatasetId
-
name
-
getName
Unique among your datasets.- Returns:
- name
-
setName
-
type
-
getType
What the rows of the current version are, decided when the version became `ready`. An import that knows what it fetched says so: a `cex` import is its `dataType`, a `dex` import of candles is `klines`. Everything else (an upload, a `dex` import of on-chain swaps) is read from the data: `ticker` when any row carries an order book (`bid`, `bidSize`, `ask`, `askSize`), or when there is only a price, or only some of `open`/`high`/`low`/`close`; `klines` when there is no book and `open`, `high`, `low` and `close` are on every row (candles). A file with no book whose `high` and `low` hardly ever change, or whose opens do not follow the closes before them (the exchange's 24-hour figures), stays `ticker`. A `kline` backtest needs `klines`; a `ticker` one takes either. Before the first version is `ready` it is only the label of the way the dataset was created (`ticker` for an upload, `klines` for an import that asked for candles). Datasets stored before this rule keep the `type` they had.- Returns:
- type
-
setType
-
instrument
-
getInstrument
Exchange instrument identifier (e.g. a currency pair)- Returns:
- instrument
-
setInstrument
-
createdAt
-
getCreatedAt
When the dataset was created.- Returns:
- createdAt
-
setCreatedAt
-
currentVersionId
-
getCurrentVersionId
The id of the most recently finalized, successfully ingested version. Absent until at least one upload has finished ingesting.- Returns:
- currentVersionId
-
setCurrentVersionId
-
deletedAt
-
getDeletedAt
When you deleted this dataset. Only ever present in `GET /datasets?includeDeleted=true`, and only on datasets you have deleted.- Returns:
- deletedAt
-
setDeletedAt
-
updatedAt
-
getUpdatedAt
When `currentVersionId` last changed. Absent until it has a value.- Returns:
- updatedAt
-
setUpdatedAt
-
from
-
getFrom
Start of `currentVersionId`'s own data range, as discovered at ingest time. Absent until a version exists.- Returns:
- from
-
setFrom
-
to
-
getTo
End of `currentVersionId`'s own data range, as discovered at ingest time. Absent until a version exists.- Returns:
- to
-
setTo
-
cadence
-
getCadence
`currentVersionId`'s own discovered cadence — a fixed grid (e.g. `1s`, `1m`, `1h`) or `rt` (see `DatasetVersion.cadence`). Absent until a version exists.- Returns:
- cadence
-
setCadence
-
timestampUnit
-
getTimestampUnit
`currentVersionId`'s own timestamp unit (see `DatasetVersion.timestampUnit`) — decode the `timestamp` column of `dataUrl`'s file accordingly. Present only when `status` is `ready`.- Returns:
- timestampUnit
-
setTimestampUnit
-
status
-
getStatus
* `ready` — `currentVersionId` is set; `from`/`to`/`cadence`/`bytes`/`rows`/`gaps`/ `largestGapSteps` describe it. * `failed` — the most recent upload/import attempt failed. `currentVersionId` and the fields above are absent — there is nothing to read yet. See `error`. * `pending` — nothing has ever been attempted (just created, or an upload was never finalized).- Returns:
- status
-
setStatus
-
bytes
-
getBytes
Size of `currentVersionId`'s own stored file. Present only when `status` is `ready` — see `DatasetVersion.bytes` for what it measures exactly.- Returns:
- bytes
-
setBytes
-
rows
-
getRows
`currentVersionId`'s own row count. Present only when `status` is `ready`.- Returns:
- rows
-
setRows
-
gaps
-
getGaps
`currentVersionId`'s own gap count at its discovered cadence. Present only when `status` is `ready`.- Returns:
- gaps
-
setGaps
-
largestGapSteps
-
getLargestGapSteps
`currentVersionId`'s own largest gap, in units of its discovered cadence step. Present only when `status` is `ready`.- Returns:
- largestGapSteps
-
setLargestGapSteps
-
error
-
getError
A human-readable reason the most recent upload/import attempt failed. Present only when `status` is `failed`.- Returns:
- error
-
setError
-
equals
Return true if this Dataset 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
-