Preparing search index...
The search index is not available
Hop Protocol v2 SDK - v0.0.1-beta.21
Hop Protocol v2 SDK
PriceFeed
Class 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
Constructors
constructor
new
Price
Feed
(
apiKeysMap
?
)
:
PriceFeed
Parameters
Optional
apiKeysMap
:
PriceFeedApiKeys
Returns
PriceFeed
Properties
aliases
aliases
:
{
[
tokenSymbol
:
string
]
:
string
;
}
Type declaration
[
tokenSymbol
:
string
]:
string
api
Keys
api
Keys
:
PriceFeedApiKeys
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
<
number
>
Parameters
tokenSymbol
:
string
Returns
Promise
<
number
>
prepend
Service
prepend
Service
(
service
)
:
void
Parameters
service
:
Service
Returns
void
set
Api
Keys
set
Api
Keys
(
apiKeysMap
?
)
:
void
Parameters
Optional
apiKeysMap
:
PriceFeedApiKeys
Returns
void
Settings
Member Visibility
Inherited
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
Visit App
V2 Playground
Explorer
Hop Protocol v2 SDK - v0.0.1-beta.21
EventName
MessengerEventName
RailsGatewayEventName
RailsPathEventName
TransferState
BonderPreferenceEventFetcher
ClaimPushedEventFetcher
ClaimReaddedEventFetcher
ClaimRemovedEventFetcher
ConfigError
ContractFunctionRevertedError
CustomError
Hop
HubConnector
InputError
InsufficientApprovalError
InsufficientBalanceError
Messenger
PathInitializedEventFetcher
PriceFeed
RailsGateway
Loading...