Package com.qtsurfer.api.client.model
Class Exchange
java.lang.Object
com.qtsurfer.api.client.model.Exchange
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.24.0")
public class Exchange
extends Object
Exchange service provider
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumVenue category, written as the `venueType` of a live run's source: `cex` is a centralized exchange and `dex` a decentralized one. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddLiveSegmentsItem(String liveSegmentsItem) addSegmentsItem(String segmentsItem) description(String description) booleanReturn true if this Exchange object is equal to o.Description of the exchangegetId()Unique identifier for the exchangeThe segments among `segments` for which live data is published, so the ones a live run can read: a live run on any other segment of the exchange is refused with `400`.getName()Name of the exchangeThe segments the exchange offers, written as in the path of `GET /exchange/{exchangeId}/{segment}/instruments` and as the `segment` of a live run's source.Venue category, written as the `venueType` of a live run's source: `cex` is a centralized exchange and `dex` a decentralized one.inthashCode()liveSegments(Set<String> liveSegments) voidsetDescription(String description) voidvoidsetLiveSegments(Set<String> liveSegments) voidvoidsetSegments(Set<String> segments) voidsetVenueType(Exchange.VenueTypeEnum venueType) toString()Convert the instance into URL query string.toUrlQueryString(String prefix) Convert the instance into URL query string.venueType(Exchange.VenueTypeEnum venueType)
-
Field Details
-
JSON_PROPERTY_ID
- See Also:
-
JSON_PROPERTY_NAME
- See Also:
-
JSON_PROPERTY_DESCRIPTION
- See Also:
-
JSON_PROPERTY_VENUE_TYPE
- See Also:
-
JSON_PROPERTY_SEGMENTS
- See Also:
-
JSON_PROPERTY_LIVE_SEGMENTS
- See Also:
-
-
Constructor Details
-
Exchange
public Exchange()
-
-
Method Details
-
id
-
getId
Unique identifier for the exchange- Returns:
- id
-
setId
-
name
-
getName
Name of the exchange- Returns:
- name
-
setName
-
description
-
getDescription
Description of the exchange- Returns:
- description
-
setDescription
-
venueType
-
getVenueType
Venue category, written as the `venueType` of a live run's source: `cex` is a centralized exchange and `dex` a decentralized one. A `dex` exchange has no market data to prepare or backtest, so its id is not valid in the routes that take an `exchangeId`, except the two instruments routes, which list its pools (the instrument of a run on it is a pool's address).- Returns:
- venueType
-
setVenueType
-
segments
-
addSegmentsItem
-
getSegments
The segments the exchange offers, written as in the path of `GET /exchange/{exchangeId}/{segment}/instruments` and as the `segment` of a live run's source. For a `cex` exchange, its market segments (`spot`, `futures`: the ones its instrument catalogues are served under); for a `dex` exchange, the protocols whose pools a run can read.- Returns:
- segments
-
setSegments
-
liveSegments
-
addLiveSegmentsItem
-
getLiveSegments
The segments among `segments` for which live data is published, so the ones a live run can read: a live run on any other segment of the exchange is refused with `400`. It can be empty (an exchange whose live data is not published yet).- Returns:
- liveSegments
-
setLiveSegments
-
equals
Return true if this Exchange 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
-