Package com.qtsurfer.api.client.model
Class DatasetImportRequest
java.lang.Object
com.qtsurfer.api.client.model.DatasetImportRequest
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.14.0")
public class DatasetImportRequest
extends Object
`POST /datasets/imports`'s request body. A common block plus one type-specific block, selected by `type` — `dex` is the only value today.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumOptional.static enumThe source to fetch from. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncadence(DatasetImportRequest.CadenceEnum cadence) booleanReturn true if this DatasetImportRequest object is equal to o.from(OffsetDateTime from) Optional.getDex()Get dexgetFrom()Start of the range to fetch, inclusive.Exchange instrument identifier (e.g.getName()A name unique among your datasets.getTo()End of the range to fetch, exclusive.getType()The source to fetch from.inthashCode()instrument(String instrument) voidvoidvoidsetFrom(OffsetDateTime from) voidsetInstrument(String instrument) voidvoidsetTo(OffsetDateTime to) voidto(OffsetDateTime to) toString()Convert the instance into URL query string.toUrlQueryString(String prefix) Convert the instance into URL query string.
-
Field Details
-
JSON_PROPERTY_NAME
- See Also:
-
JSON_PROPERTY_INSTRUMENT
- See Also:
-
JSON_PROPERTY_FROM
- See Also:
-
JSON_PROPERTY_TO
- See Also:
-
JSON_PROPERTY_CADENCE
- See Also:
-
JSON_PROPERTY_TYPE
- See Also:
-
JSON_PROPERTY_DEX
- See Also:
-
-
Constructor Details
-
DatasetImportRequest
public DatasetImportRequest()
-
-
Method Details
-
name
-
getName
A name unique among your datasets. `409` if already taken.- Returns:
- name
-
setName
-
instrument
-
getInstrument
Exchange instrument identifier (e.g. a currency pair)- Returns:
- instrument
-
setInstrument
-
from
-
getFrom
Start of the range to fetch, inclusive. Must be before `to`.- Returns:
- from
-
setFrom
-
to
-
getTo
End of the range to fetch, exclusive. The total span is capped by your tier — a request wider than that ceiling is `400`, regardless of source type.- Returns:
- to
-
setTo
-
cadence
-
getCadence
Optional. Omitted/blank keeps native per-trade event cadence — each swap at its own timestamp, so the resulting version's `cadence` is `rt` unless the swaps happen to sit on a fixed grid (see `DatasetVersion.cadence`). Set to `1s`, `1m` or `5m` instead to get pre-aggregated candles at that width rather than raw trades (the resulting dataset's `type` becomes `klines`); any other value is `400`. Not every network supports every cadence — an unsupported combination fails asynchronously, not at request time (see `DatasetImportState.error`).- Returns:
- cadence
-
setCadence
-
type
-
getType
The source to fetch from. `dex` is the only value today.- Returns:
- type
-
setType
-
dex
-
getDex
Get dex- Returns:
- dex
-
setDex
-
equals
Return true if this DatasetImportRequest 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
-