Package com.qtsurfer.api.client.model
Class DatasetWithLinks
java.lang.Object
com.qtsurfer.api.client.model.DatasetWithLinks
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.24.0")
public class DatasetWithLinks
extends Object
A `Dataset` plus a self link. Returned by `GET /datasets/{datasetId}`.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumWhich format `dataUrl` is actually in — check this rather than assuming it matches how you uploaded it.static 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 Stringstatic final Stringstatic final Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreatedAt(OffsetDateTime createdAt) currentVersionId(String currentVersionId) dataFormat(DatasetWithLinks.DataFormatEnum dataFormat) deletedAt(OffsetDateTime deletedAt) booleanReturn true if this DatasetWithLinks 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.Which format `dataUrl` is actually in — check this rather than assuming it matches how you uploaded it.Opaque id, returned by `POST /datasets`.Presigned GET URL to the current version's stored file — see `dataFormat` for which format it's actually in.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.getLinks()Get linksgetName()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) links(DatasetWithLinksAllOfLinks links) voidvoidsetCadence(String cadence) voidsetCreatedAt(OffsetDateTime createdAt) voidsetCurrentVersionId(String currentVersionId) voidsetDataFormat(DatasetWithLinks.DataFormatEnum dataFormat) voidsetDatasetId(String datasetId) voidsetDataUrl(String dataUrl) voidsetDeletedAt(OffsetDateTime deletedAt) voidvoidsetFrom(OffsetDateTime from) voidvoidsetInstrument(String instrument) voidsetLargestGapSteps(Integer largestGapSteps) voidvoidvoidvoidsetStatus(DatasetWithLinks.StatusEnum status) voidsetTimestampUnit(DatasetWithLinks.TimestampUnitEnum timestampUnit) voidsetTo(OffsetDateTime to) voidvoidsetUpdatedAt(OffsetDateTime updatedAt) status(DatasetWithLinks.StatusEnum status) timestampUnit(DatasetWithLinks.TimestampUnitEnum timestampUnit) to(OffsetDateTime to) toString()Convert the instance into URL query string.toUrlQueryString(String prefix) Convert the instance into URL query string.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:
-
JSON_PROPERTY_DATA_URL
- See Also:
-
JSON_PROPERTY_DATA_FORMAT
- See Also:
-
JSON_PROPERTY_LINKS
- See Also:
-
-
Constructor Details
-
DatasetWithLinks
public DatasetWithLinks()
-
-
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
-
dataUrl
-
getDataUrl
Presigned GET URL to the current version's stored file — see `dataFormat` for which format it's actually in. Present only once the current version's status is `ready`. Long-lived (day-scale, not permanent): a DuckDB-WASM/`lastra-ts`-style reader issues HTTP range requests against it lazily over an extended viewing session, not in one shot like a browser upload.- Returns:
- dataUrl
-
setDataUrl
-
dataFormat
-
getDataFormat
Which format `dataUrl` is actually in — check this rather than assuming it matches how you uploaded it. `lastra` — our native columnar format — for a CSV (or gzip/zip of one) upload, always converted on ingest, or for a lastra upload, stored as-is (the value alone doesn't tell you which). `parquet` for a parquet upload, also stored as-is today.- Returns:
- dataFormat
-
setDataFormat
-
links
-
getLinks
Get links- Returns:
- links
-
setLinks
-
equals
Return true if this DatasetWithLinks 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
-