Package com.qtsurfer.api.client.model
Class InstrumentDetail
java.lang.Object
com.qtsurfer.api.client.model.InstrumentDetail
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.24.0")
public class InstrumentDetail
extends Object
Exchange instrument with per-data-type coverage and market info
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncoverage(InstrumentCoverage coverage) booleanReturn true if this InstrumentDetail object is equal to o.getBase()Base currencyGet coveragegetId()Instrument identifier (e.g.Last traded price.getQuote()Quote currencySettlement currency.The instrument's name, the same as `id`.Trading volume in the last 24 hours (in quote currency).inthashCode()voidvoidsetCoverage(InstrumentCoverage coverage) voidvoidsetLastPrice(Double lastPrice) voidvoidvoidvoidsetVolume24h(Double volume24h) toString()Convert the instance into URL query string.toUrlQueryString(String prefix) Convert the instance into URL query string.
-
Field Details
-
JSON_PROPERTY_ID
- See Also:
-
JSON_PROPERTY_SYMBOL
- See Also:
-
JSON_PROPERTY_BASE
- See Also:
-
JSON_PROPERTY_QUOTE
- See Also:
-
JSON_PROPERTY_SETTLE
- See Also:
-
JSON_PROPERTY_COVERAGE
- See Also:
-
JSON_PROPERTY_LAST_PRICE
- See Also:
-
JSON_PROPERTY_VOLUME24H
- See Also:
-
-
Constructor Details
-
InstrumentDetail
public InstrumentDetail()
-
-
Method Details
-
id
-
getId
Instrument identifier (e.g. currency pair)- Returns:
- id
-
setId
-
symbol
-
getSymbol
The instrument's name, the same as `id`. A pool of a decentralized exchange has the same field (`PoolDetail`), so both listings are read alike.- Returns:
- symbol
-
setSymbol
-
base
-
getBase
Base currency- Returns:
- base
-
setBase
-
quote
-
getQuote
Quote currency- Returns:
- quote
-
setQuote
-
settle
-
getSettle
Settlement currency. Present on a futures instrument only.- Returns:
- settle
-
setSettle
-
coverage
-
getCoverage
Get coverage- Returns:
- coverage
-
setCoverage
-
lastPrice
-
getLastPrice
Last traded price. Absent for an instrument with no recent price.- Returns:
- lastPrice
-
setLastPrice
-
volume24h
-
getVolume24h
Trading volume in the last 24 hours (in quote currency). Absent for an instrument with no recent volume.- Returns:
- volume24h
-
setVolume24h
-
equals
Return true if this InstrumentDetail 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
-