public interface Layer1ApiAdminProvider extends java.lang.AutoCloseable, Layer1ApiAdminListenable
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Shut down and dispose
|
long |
getCurrentTime()
Returns current Unix epoch time.
|
java.lang.String |
getSource()
Returns string representing data source.
|
Layer1ApiProviderSupportedFeatures |
getSupportedFeatures()
Get information about features that are supported by a provider.
|
void |
login(LoginData loginData)
Initiate login to the platform.
|
java.lang.Object |
sendUserMessage(java.lang.Object data)
Allows incorporating arbitrary functionality into protocol
|
addListener, removeListenerLayer1ApiProviderSupportedFeatures getSupportedFeatures()
Get information about features that are supported by a provider. Note that some fields might be set differently depending on when request is made. E.g. adapter might not know if trading will be there until login actually happens.
If you are writing a provider - take a look at
MaximumSupportedFeatures as a way to declare full list of
capabilities before being instantiated
MaximumSupportedFeaturesvoid login(LoginData loginData)
loginData - credentials, different platforms use different subclasseslong getCurrentTime()
java.lang.String getSource()
java.lang.Object sendUserMessage(java.lang.Object data)
data - Message contentvoid close()
close in interface java.lang.AutoCloseable