Preparing search index...
The search index is not available
@hop-protocol/sdk
@hop-protocol/sdk
PriceFeed
Class PriceFeed
Hierarchy
PriceFeed
Index
Constructors
constructor
Properties
aliases
api
Keys
cache
Time
Ms
services
timeout
Ms
Methods
_get
Price
By
Token
Symbol
format
Price
get
Price
By
Token
Symbol
prepend
Service
set
Api
Keys
set
Services
Constructors
constructor
new
Price
Feed
(
apiKeysMap
?
)
:
PriceFeed
Parameters
apiKeysMap
:
ApiKeys
= {}
Returns
PriceFeed
Properties
aliases
aliases
:
{
[
tokenSymbol
:
string
]
:
string
;
}
= ...
Type declaration
[
tokenSymbol
:
string
]:
string
api
Keys
api
Keys
:
ApiKeys
= {}
cache
Time
Ms
cache
Time
Ms
:
number
= ...
services
services
:
Service
[]
= []
timeout
Ms
timeout
Ms
:
number
= ...
Methods
_get
Price
By
Token
Symbol
_get
Price
By
Token
Symbol
(
tokenSymbol
)
:
Promise
<
number
>
Parameters
tokenSymbol
:
string
Returns
Promise
<
number
>
format
Price
format
Price
(
tokenSymbol
,
price
)
:
number
Parameters
tokenSymbol
:
string
price
:
number
Returns
number
get
Price
By
Token
Symbol
get
Price
By
Token
Symbol
(
tokenSymbol
)
:
Promise
<
any
>
Parameters
tokenSymbol
:
string
Returns
Promise
<
any
>
prepend
Service
prepend
Service
(
service
)
:
void
Parameters
service
:
Service
Returns
void
set
Api
Keys
set
Api
Keys
(
apiKeysMap
?
)
:
void
Parameters
apiKeysMap
:
ApiKeys
= {}
Returns
void
Private
set
Services
set
Services
(
)
:
void
Returns
void
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
On This Page
constructor
aliases
api
Keys
cache
Time
Ms
services
timeout
Ms
_get
Price
By
Token
Symbol
format
Price
get
Price
By
Token
Symbol
prepend
Service
set
Api
Keys
set
Services
@hop-protocol/sdk
WithdrawalProof
eventTopics
utils
CanonicalToken
ChainId
ChainSlug
HToken
NetworkSlug
Slug
WrappedToken
AMM
Base
Chain
FallbackProvider
Hop
HopBridge
Multicall
PriceFeed
RelayerFee
RetryProvider
Route
Loading...
Generated using
TypeDoc