Package com.qtsurfer.api.client.model
Class PoolDetail
java.lang.Object
com.qtsurfer.api.client.model.PoolDetail
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.24.0")
public class PoolDetail
extends Object
A pool of a decentralized exchange that a live run can read. The listing is a place to start, not the whole market: a live run can read any pool of the protocol, listed or not.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbaseAddress(String baseAddress) createdAt(OffsetDateTime createdAt) booleanReturn true if this PoolDetail object is equal to o.feePercent(BigDecimal feePercent) getBase()Symbol of the base tokenAddress of the base token, in lower caseWhen the pool was created.The pool's fee tier, in percent (`0.05` is a 0.05 % fee).getId()The pool's address, in lower case.The price of one base token in the quote token, as the signals of a run on this pool name the pair.getQuote()Symbol of the quote tokenAddress of the quote token, in lower caseThe pair written `BASE/QUOTE`, the way the signals of a run on this pool name it (`instrument`)The liquidity held by the pool, in US dollarsWhat traded in the pool over the last 24 hours, in the quote token, the same meaning as `volume24h` of an instrument of a centralized exchange.What traded in the pool over the last 24 hours, in US dollarsinthashCode()quoteAddress(String quoteAddress) voidvoidsetBaseAddress(String baseAddress) voidsetCreatedAt(OffsetDateTime createdAt) voidsetFeePercent(BigDecimal feePercent) voidvoidsetLastPrice(Double lastPrice) voidvoidsetQuoteAddress(String quoteAddress) voidvoidsetTvlUsd(BigDecimal tvlUsd) voidsetVolume24h(Double volume24h) voidsetVolume24hUsd(BigDecimal volume24hUsd) toString()Convert the instance into URL query string.toUrlQueryString(String prefix) Convert the instance into URL query string.tvlUsd(BigDecimal tvlUsd) volume24hUsd(BigDecimal volume24hUsd)
-
Field Details
-
JSON_PROPERTY_ID
- See Also:
-
JSON_PROPERTY_SYMBOL
- See Also:
-
JSON_PROPERTY_BASE
- See Also:
-
JSON_PROPERTY_QUOTE
- See Also:
-
JSON_PROPERTY_BASE_ADDRESS
- See Also:
-
JSON_PROPERTY_QUOTE_ADDRESS
- See Also:
-
JSON_PROPERTY_FEE_PERCENT
- See Also:
-
JSON_PROPERTY_LAST_PRICE
- See Also:
-
JSON_PROPERTY_VOLUME24H
- See Also:
-
JSON_PROPERTY_TVL_USD
- See Also:
-
JSON_PROPERTY_VOLUME24H_USD
- See Also:
-
JSON_PROPERTY_CREATED_AT
- See Also:
-
-
Constructor Details
-
PoolDetail
public PoolDetail()
-
-
Method Details
-
id
-
getId
The pool's address, in lower case. It is the value to put in `instruments` of a live run's source.- Returns:
- id
-
setId
-
symbol
-
getSymbol
The pair written `BASE/QUOTE`, the way the signals of a run on this pool name it (`instrument`)- Returns:
- symbol
-
setSymbol
-
base
-
getBase
Symbol of the base token- Returns:
- base
-
setBase
-
quote
-
getQuote
Symbol of the quote token- Returns:
- quote
-
setQuote
-
baseAddress
-
getBaseAddress
Address of the base token, in lower case- Returns:
- baseAddress
-
setBaseAddress
-
quoteAddress
-
getQuoteAddress
Address of the quote token, in lower case- Returns:
- quoteAddress
-
setQuoteAddress
-
feePercent
-
getFeePercent
The pool's fee tier, in percent (`0.05` is a 0.05 % fee). A protocol can have several pools of the same pair, one per fee tier.- Returns:
- feePercent
-
setFeePercent
-
lastPrice
-
getLastPrice
The price of one base token in the quote token, as the signals of a run on this pool name the pair. It is as of `meta.updatedAt`, so up to one hour old. Absent when there is no price for the pool.- Returns:
- lastPrice
-
setLastPrice
-
volume24h
-
getVolume24h
What traded in the pool over the last 24 hours, in the quote token, the same meaning as `volume24h` of an instrument of a centralized exchange. Absent when the quote token has no dollar price to convert from.- Returns:
- volume24h
-
setVolume24h
-
tvlUsd
-
getTvlUsd
The liquidity held by the pool, in US dollars- Returns:
- tvlUsd
-
setTvlUsd
-
volume24hUsd
-
getVolume24hUsd
What traded in the pool over the last 24 hours, in US dollars- Returns:
- volume24hUsd
-
setVolume24hUsd
-
createdAt
-
getCreatedAt
When the pool was created. Absent when it is not known- Returns:
- createdAt
-
setCreatedAt
-
equals
Return true if this PoolDetail 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
-