| Package | Description |
|---|---|
| cloud.metaapi.sdk.clients.meta_api | |
| cloud.metaapi.sdk.meta_api |
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<MetatraderSymbolPrice> |
MetaApiWebsocketClient.getSymbolPrice(String accountId,
String symbol)
Retrieves price for a symbol (see
https://metaapi.cloud/docs/client/websocket/api/retrieveMarketData/readSymbolPrice/).
|
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<Void> |
SynchronizationListener.onSymbolPriceUpdated(String instanceIndex,
MetatraderSymbolPrice price)
Invoked when a symbol price was updated
|
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<Void> |
SynchronizationListener.onSymbolPricesUpdated(String instanceIndex,
List<MetatraderSymbolPrice> prices,
Double equity,
Double margin,
Double freeMargin,
Double marginLevel,
Double accountCurrencyExchangeRate)
Invoked when prices for several symbols were updated
|
| Modifier and Type | Method and Description |
|---|---|
Optional<MetatraderSymbolPrice> |
TerminalState.getPrice(String symbol)
Returns MetaTrader symbol price by symbol
|
CompletableFuture<MetatraderSymbolPrice> |
MetaApiConnection.getSymbolPrice(String symbol)
Retrieves latest price for a symbol (see
https://metaapi.cloud/docs/client/websocket/api/retrieveMarketData/readSymbolPrice/).
|
CompletableFuture<Optional<MetatraderSymbolPrice>> |
TerminalState.waitForPrice(String symbol)
Waits for price to be received
|
CompletableFuture<Optional<MetatraderSymbolPrice>> |
TerminalState.waitForPrice(String symbol,
Long timeoutInSeconds)
Waits for price to be received
|
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<Void> |
ConnectionHealthMonitor.onSymbolPriceUpdated(String instanceIndex,
MetatraderSymbolPrice price) |
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<Void> |
TerminalState.onSymbolPricesUpdated(String instanceIndex,
List<MetatraderSymbolPrice> prices,
Double equity,
Double margin,
Double freeMargin,
Double marginLevel,
Double accountCurrencyExchangeRate) |
Copyright © 2021. All rights reserved.