Package com.qtsurfer.api.client.model
Class DatasetImportCexRequest
java.lang.Object
com.qtsurfer.api.client.model.DatasetImportCexRequest
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.24.0")
public class DatasetImportCexRequest
extends Object
The `cex` source's own fields — required when `type` is `cex`. They name a market the way `GET /exchanges` and the instruments routes do: `exchange` is the `id` of a centralized exchange, `segment` one of its `segments`.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumWhat to import, and the resulting dataset's `type`: `ticker` — the exchange's ticker series — or `klines` — its aggregated bars (open, high, low, close and volume).static enumThe market segment, one of the exchange's `segments`. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondataType(DatasetImportCexRequest.DataTypeEnum dataType) booleanReturn true if this DatasetImportCexRequest object is equal to o.What to import, and the resulting dataset's `type`: `ticker` — the exchange's ticker series — or `klines` — its aggregated bars (open, high, low, close and volume).The id of a centralized exchange (`venueType` `cex`) of `GET /exchanges`, lower-case.The market segment, one of the exchange's `segments`.inthashCode()voidvoidsetExchange(String exchange) voidtoString()Convert the instance into URL query string.toUrlQueryString(String prefix) Convert the instance into URL query string.
-
Field Details
-
JSON_PROPERTY_EXCHANGE
- See Also:
-
JSON_PROPERTY_SEGMENT
- See Also:
-
JSON_PROPERTY_DATA_TYPE
- See Also:
-
-
Constructor Details
-
DatasetImportCexRequest
public DatasetImportCexRequest()
-
-
Method Details
-
exchange
-
getExchange
The id of a centralized exchange (`venueType` `cex`) of `GET /exchanges`, lower-case. A decentralized exchange's id is `400`: import its pools with `type: dex`.- Returns:
- exchange
-
setExchange
-
segment
-
getSegment
The market segment, one of the exchange's `segments`. `spot` is the only segment a `cex` import takes today, which matches `instrument` being a plain spot pair.- Returns:
- segment
-
setSegment
-
dataType
-
getDataType
What to import, and the resulting dataset's `type`: `ticker` — the exchange's ticker series — or `klines` — its aggregated bars (open, high, low, close and volume).- Returns:
- dataType
-
setDataType
-
equals
Return true if this DatasetImportCexRequest 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
-