maestro-sdk-1.7.3: Maestro Blockchain Indexer SDK
Safe HaskellNone
LanguageHaskell2010

Maestro.Types.V1.DefiMarkets

Description

Module to define types for "DeFi Markets" category of endpoints defined at docs.gomaestro.org.

Synopsis

Documentation

data Dex #

Denotes which dex to use

Constructors

Minswap 
GeniusYield 

Instances

Instances details
Bounded Dex # 
Instance details

Defined in Maestro.Types.V1.DefiMarkets

Methods

minBoundDex #

maxBoundDex #

Enum Dex # 
Instance details

Defined in Maestro.Types.V1.DefiMarkets

Methods

succDexDex #

predDexDex #

toEnumIntDex #

fromEnumDexInt #

enumFromDex → [Dex] #

enumFromThenDexDex → [Dex] #

enumFromToDexDex → [Dex] #

enumFromThenToDexDexDex → [Dex] #

Eq Dex # 
Instance details

Defined in Maestro.Types.V1.DefiMarkets

Methods

(==)DexDexBool #

(/=)DexDexBool #

Ord Dex # 
Instance details

Defined in Maestro.Types.V1.DefiMarkets

Methods

compareDexDexOrdering #

(<)DexDexBool #

(<=)DexDexBool #

(>)DexDexBool #

(>=)DexDexBool #

maxDexDexDex #

minDexDexDex #

Show Dex # 
Instance details

Defined in Maestro.Types.V1.DefiMarkets

Methods

showsPrecIntDexShowS #

showDexString #

showList ∷ [Dex] → ShowS #

Generic Dex # 
Instance details

Defined in Maestro.Types.V1.DefiMarkets

Associated Types

type Rep DexTypeType #

Methods

fromDexRep Dex x #

toRep Dex x → Dex #

FromHttpApiData Dex # 
Instance details

Defined in Maestro.Types.V1.DefiMarkets

ToHttpApiData Dex # 
Instance details

Defined in Maestro.Types.V1.DefiMarkets

ToJSON Dex # 
Instance details

Defined in Maestro.Types.V1.DefiMarkets

Methods

toJSONDex → Value

toEncodingDex → Encoding

toJSONList ∷ [Dex] → Value

toEncodingList ∷ [Dex] → Encoding

omitFieldDexBool

FromJSON Dex # 
Instance details

Defined in Maestro.Types.V1.DefiMarkets

Methods

parseJSON ∷ Value → Parser Dex

parseJSONList ∷ Value → Parser [Dex]

omittedFieldMaybe Dex

type Rep Dex # 
Instance details

Defined in Maestro.Types.V1.DefiMarkets

type Rep Dex = D1 ('MetaData "Dex" "Maestro.Types.V1.DefiMarkets" "maestro-sdk-1.7.3-inplace" 'False) (C1 ('MetaCons "Minswap" 'PrefixI 'False) (U1TypeType) :+: C1 ('MetaCons "GeniusYield" 'PrefixI 'False) (U1TypeType))

type PairOfDexTokens = "Token pair to look for. Format: XXX-YYY" #

Token Pair that is queried

data Resolution #

Time resolution for OHLC Candles

Instances

Instances details
Bounded Resolution # 
Instance details

Defined in Maestro.Types.V1.DefiMarkets

Enum Resolution # 
Instance details

Defined in Maestro.Types.V1.DefiMarkets

Eq Resolution # 
Instance details

Defined in Maestro.Types.V1.DefiMarkets

Methods

(==)ResolutionResolutionBool #

(/=)ResolutionResolutionBool #

Data Resolution # 
Instance details

Defined in Maestro.Types.V1.DefiMarkets

Methods

gfoldl ∷ (∀ d b. Data d ⇒ c (d → b) → d → c b) → (∀ g. g → c g) → Resolution → c Resolution #

gunfold ∷ (∀ b r. Data b ⇒ c (b → r) → c r) → (∀ r. r → c r) → Constr → c Resolution #

toConstrResolutionConstr #

dataTypeOfResolutionDataType #

dataCast1Typeable t ⇒ (∀ d. Data d ⇒ c (t d)) → Maybe (c Resolution) #

dataCast2Typeable t ⇒ (∀ d e. (Data d, Data e) ⇒ c (t d e)) → Maybe (c Resolution) #

gmapT ∷ (∀ b. Data b ⇒ b → b) → ResolutionResolution #

gmapQl ∷ (r → r' → r) → r → (∀ d. Data d ⇒ d → r') → Resolution → r #

gmapQr ∷ ∀ r r'. (r' → r → r) → r → (∀ d. Data d ⇒ d → r') → Resolution → r #

gmapQ ∷ (∀ d. Data d ⇒ d → u) → Resolution → [u] #

gmapQiInt → (∀ d. Data d ⇒ d → u) → Resolution → u #

gmapMMonad m ⇒ (∀ d. Data d ⇒ d → m d) → Resolution → m Resolution #

gmapMpMonadPlus m ⇒ (∀ d. Data d ⇒ d → m d) → Resolution → m Resolution #

gmapMoMonadPlus m ⇒ (∀ d. Data d ⇒ d → m d) → Resolution → m Resolution #

Ord Resolution # 
Instance details

Defined in Maestro.Types.V1.DefiMarkets

Show Resolution # 
Instance details

Defined in Maestro.Types.V1.DefiMarkets

Generic Resolution # 
Instance details

Defined in Maestro.Types.V1.DefiMarkets

Associated Types

type Rep ResolutionTypeType #

FromHttpApiData Resolution # 
Instance details

Defined in Maestro.Types.V1.DefiMarkets

ToHttpApiData Resolution # 
Instance details

Defined in Maestro.Types.V1.DefiMarkets

ToJSON Resolution # 
Instance details

Defined in Maestro.Types.V1.DefiMarkets

Methods

toJSONResolution → Value

toEncodingResolution → Encoding

toJSONList ∷ [Resolution] → Value

toEncodingList ∷ [Resolution] → Encoding

omitFieldResolutionBool

FromJSON Resolution # 
Instance details

Defined in Maestro.Types.V1.DefiMarkets

Methods

parseJSON ∷ Value → Parser Resolution

parseJSONList ∷ Value → Parser [Resolution]

omittedFieldMaybe Resolution

type Rep Resolution # 
Instance details

Defined in Maestro.Types.V1.DefiMarkets

type Rep Resolution = D1 ('MetaData "Resolution" "Maestro.Types.V1.DefiMarkets" "maestro-sdk-1.7.3-inplace" 'False) (((C1 ('MetaCons "Res1m" 'PrefixI 'False) (U1TypeType) :+: C1 ('MetaCons "Res5m" 'PrefixI 'False) (U1TypeType)) :+: (C1 ('MetaCons "Res15m" 'PrefixI 'False) (U1TypeType) :+: C1 ('MetaCons "Res30m" 'PrefixI 'False) (U1TypeType))) :+: ((C1 ('MetaCons "Res1h" 'PrefixI 'False) (U1TypeType) :+: C1 ('MetaCons "Res4h" 'PrefixI 'False) (U1TypeType)) :+: (C1 ('MetaCons "Res1d" 'PrefixI 'False) (U1TypeType) :+: (C1 ('MetaCons "Res1w" 'PrefixI 'False) (U1TypeType) :+: C1 ('MetaCons "Res1mo" 'PrefixI 'False) (U1TypeType)))))

data DexPairResponse #

Instances

Instances details
Eq DexPairResponse # 
Instance details

Defined in Maestro.Types.V1.DefiMarkets

Ord DexPairResponse # 
Instance details

Defined in Maestro.Types.V1.DefiMarkets

Show DexPairResponse # 
Instance details

Defined in Maestro.Types.V1.DefiMarkets

Generic DexPairResponse # 
Instance details

Defined in Maestro.Types.V1.DefiMarkets

Associated Types

type Rep DexPairResponseTypeType #

FromJSON DexPairResponse # 
Instance details

Defined in Maestro.Types.V1.DefiMarkets

Methods

parseJSON ∷ Value → Parser DexPairResponse

parseJSONList ∷ Value → Parser [DexPairResponse]

omittedFieldMaybe DexPairResponse

type Rep DexPairResponse # 
Instance details

Defined in Maestro.Types.V1.DefiMarkets

type Rep DexPairResponse = D1 ('MetaData "DexPairResponse" "Maestro.Types.V1.DefiMarkets" "maestro-sdk-1.7.3-inplace" 'False) (C1 ('MetaCons "DexPairResponse" 'PrefixI 'True) (S1 ('MetaSel ('Just "dexPairResponseDex") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Dex) :*: S1 ('MetaSel ('Just "dexPairResponsePairs") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 [DexPairInfo])))

data DexPairInfo #

Instances

Instances details
Eq DexPairInfo # 
Instance details

Defined in Maestro.Types.V1.DefiMarkets

Ord DexPairInfo # 
Instance details

Defined in Maestro.Types.V1.DefiMarkets

Show DexPairInfo # 
Instance details

Defined in Maestro.Types.V1.DefiMarkets

Generic DexPairInfo # 
Instance details

Defined in Maestro.Types.V1.DefiMarkets

Associated Types

type Rep DexPairInfoTypeType #

FromJSON DexPairInfo # 
Instance details

Defined in Maestro.Types.V1.DefiMarkets

Methods

parseJSON ∷ Value → Parser DexPairInfo

parseJSONList ∷ Value → Parser [DexPairInfo]

omittedFieldMaybe DexPairInfo

type Rep DexPairInfo # 
Instance details

Defined in Maestro.Types.V1.DefiMarkets

type Rep DexPairInfo = D1 ('MetaData "DexPairInfo" "Maestro.Types.V1.DefiMarkets" "maestro-sdk-1.7.3-inplace" 'False) (C1 ('MetaCons "DexPairInfo" 'PrefixI 'True) ((S1 ('MetaSel ('Just "dexPairInfoCoinAAssetName") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 TokenName) :*: S1 ('MetaSel ('Just "dexPairInfoCoinAPolicy") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 PolicyId)) :*: (S1 ('MetaSel ('Just "dexPairInfoCoinBAssetName") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 TokenName) :*: (S1 ('MetaSel ('Just "dexPairInfoCoinBPolicy") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 PolicyId) :*: S1 ('MetaSel ('Just "dexPairInfoPair") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Text)))))

data OHLCCandleInfo #

Candle data according to the OHLC format

Instances

Instances details
Eq OHLCCandleInfo # 
Instance details

Defined in Maestro.Types.V1.DefiMarkets

Ord OHLCCandleInfo # 
Instance details

Defined in Maestro.Types.V1.DefiMarkets

Show OHLCCandleInfo # 
Instance details

Defined in Maestro.Types.V1.DefiMarkets

Generic OHLCCandleInfo # 
Instance details

Defined in Maestro.Types.V1.DefiMarkets

Associated Types

type Rep OHLCCandleInfoTypeType #

FromJSON OHLCCandleInfo # 
Instance details

Defined in Maestro.Types.V1.DefiMarkets

Methods

parseJSON ∷ Value → Parser OHLCCandleInfo

parseJSONList ∷ Value → Parser [OHLCCandleInfo]

omittedFieldMaybe OHLCCandleInfo

type Rep OHLCCandleInfo # 
Instance details

Defined in Maestro.Types.V1.DefiMarkets

type Rep OHLCCandleInfo = D1 ('MetaData "OHLCCandleInfo" "Maestro.Types.V1.DefiMarkets" "maestro-sdk-1.7.3-inplace" 'False) (C1 ('MetaCons "OHLCCandleInfo" 'PrefixI 'True) (((S1 ('MetaSel ('Just "ohlcCandleInfoCoinAClose") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Double) :*: (S1 ('MetaSel ('Just "ohlcCandleInfoCoinAHigh") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Double) :*: S1 ('MetaSel ('Just "ohlcCandleInfoCoinALow") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Double))) :*: (S1 ('MetaSel ('Just "ohlcCandleInfoCoinAOpen") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Double) :*: (S1 ('MetaSel ('Just "ohlcCandleInfoCoinAVolume") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Double) :*: S1 ('MetaSel ('Just "ohlcCandleInfoCoinBClose") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Double)))) :*: ((S1 ('MetaSel ('Just "ohlcCandleInfoCoinBHigh") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Double) :*: (S1 ('MetaSel ('Just "ohlcCandleInfoCoinBLow") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Double) :*: S1 ('MetaSel ('Just "ohlcCandleInfoCoinBOpen") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Double))) :*: (S1 ('MetaSel ('Just "ohlcCandleInfoCoinBVolume") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Double) :*: (S1 ('MetaSel ('Just "ohlcCandleInfoCount") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Natural) :*: S1 ('MetaSel ('Just "ohlcCandleInfoTimestamp") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 UTCTime))))))