PolygonIOMessageAdapter

StockSharp.PolygonIO

Der Nachrichtenadapter für PolygonIO.

Erbt von: MessageAdapter

Implementiert: ITokenAdapter, IKeySecretAdapter, IAddressAdapter<string>

Konstruktoren

PolygonIOMessageAdapter
public PolygonIOMessageAdapter(IdGenerator transactionIdGenerator)
polygonIOMessageAdapter = PolygonIOMessageAdapter(transactionIdGenerator)

Initialisiert eine neue Instanz von PolygonIOMessageAdapter.

transactionIdGenerator
Transaktions-ID-Generator.

Eigenschaften

Address
public string Address { get; set; }
value = polygonIOMessageAdapter.Address
polygonIOMessageAdapter.Address = value

Serveradresse.

AllTimeFrames
public static IEnumerable<TimeSpan> AllTimeFrames { get; }
value = PolygonIOMessageAdapter.AllTimeFrames

Mögliche Zeitrahmen.

ConnectionType
public PolygonIOConnectionTypes ConnectionType { get; set; }
value = polygonIOMessageAdapter.ConnectionType
polygonIOMessageAdapter.ConnectionType = value

Art der Verbindung.

FeatureName
public override string FeatureName { get; }
value = polygonIOMessageAdapter.FeatureName

Name des Merkmals.

FlatFilesRepo
public string FlatFilesRepo { get; set; }
value = polygonIOMessageAdapter.FlatFilesRepo
polygonIOMessageAdapter.FlatFilesRepo = value

Polygon Flat Files (S3) Bucket Name.

FlatFilesSections
public IEnumerable<SecurityTypes> FlatFilesSections { get; set; }
value = polygonIOMessageAdapter.FlatFilesSections
polygonIOMessageAdapter.FlatFilesSections = value

Instrumentenabschnitte (Arten von Finanzinstrumenten) für Polygon-Flatfiles: Wenn leer, ist der Flatfiles-Modus deaktiviert.

Key
public SecureString Key { get; set; }
value = polygonIOMessageAdapter.Key
polygonIOMessageAdapter.Key = value

AWS-Zugriffsschlüssel-ID für Polygon-Flatfiles (S3).

Secret
public SecureString Secret { get; set; }
value = polygonIOMessageAdapter.Secret
polygonIOMessageAdapter.Secret = value

AWS Secret Access Key für Polygon Flat Files (S3).

Token
public SecureString Token { get; set; }
value = polygonIOMessageAdapter.Token
polygonIOMessageAdapter.Token = value

Token-Regeln, es ist verbunden mit (zum Beispiel für Regel ISubscriptionProvider) die Bestellung wird ein Token sein).

Methoden

ConnectAsync
protected override ValueTask ConnectAsync(ConnectMessage connectMsg, CancellationToken cancellationToken)
result = polygonIOMessageAdapter.ConnectAsync(connectMsg, cancellationToken)
DisconnectAsync
protected override ValueTask DisconnectAsync(DisconnectMessage disconnectMsg, CancellationToken cancellationToken)
result = polygonIOMessageAdapter.DisconnectAsync(disconnectMsg, cancellationToken)
IsAllDownloadingSupported
public override bool IsAllDownloadingSupported(DataType dataType)
result = polygonIOMessageAdapter.IsAllDownloadingSupported(dataType)

Ist für die angegebenen alle Finanzinstrumente Download aktiviert.

dataType
Datenart-Info.

Rückgabe: Prüfergebnis.

IsSecurityRequired
public override bool IsSecurityRequired(DataType dataType)
result = polygonIOMessageAdapter.IsSecurityRequired(dataType)

Unterstützen Sie das Filtern von Abonnements (Abonnement/Abonnement für ein bestimmtes Finanzinstrument).

dataType
Datenart-Info.

Rückgabe: Prüfergebnis.

Load
public override void Load(SettingsStorage storage)
polygonIOMessageAdapter.Load(storage)

Lasteinstellungen.

storage
Einstellungen Lagerung.
OnLevel1SubscriptionAsync
protected override ValueTask OnLevel1SubscriptionAsync(MarketDataMessage mdMsg, CancellationToken cancellationToken)
result = polygonIOMessageAdapter.OnLevel1SubscriptionAsync(mdMsg, cancellationToken)

Behandelt Abonnementanfrage für Level1-Daten. Überschreiben, um Implementierung für Level1-Abonnementverarbeitung bereitzustellen. Die Standardimplementierung wirft NotSupported.

mdMsg
Marktdaten-Abonnementmeldung.
cancellationToken
Stornierungs-Token, um die Operation abzubrechen.

Rückgabe: Ein ValueTask, der die asynchrone Operation darstellt.

OnNewsSubscriptionAsync
protected override ValueTask OnNewsSubscriptionAsync(MarketDataMessage mdMsg, CancellationToken cancellationToken)
result = polygonIOMessageAdapter.OnNewsSubscriptionAsync(mdMsg, cancellationToken)

Behandelt Abonnementanfrage für Nachrichtendaten. Überschreiben, um Implementierung für die Bearbeitung von Nachrichtenabonnements bereitzustellen. Die Standardimplementierung wirft NotSupported.

mdMsg
Marktdaten-Abonnementmeldung.
cancellationToken
Stornierungs-Token, um die Operation abzubrechen.

Rückgabe: Ein ValueTask, der die asynchrone Operation darstellt.

OnTFCandlesSubscriptionAsync
protected override ValueTask OnTFCandlesSubscriptionAsync(MarketDataMessage mdMsg, CancellationToken cancellationToken)
result = polygonIOMessageAdapter.OnTFCandlesSubscriptionAsync(mdMsg, cancellationToken)

Behandelt Abonnementanfrage für Zeitrahmen-Kerzen (TF-Kerzen) Daten. Überschreiben, um Implementierung für die TF-Kerzen-Abonnementverarbeitung bereitzustellen. Die Standardimplementierung wirft NotSupported.

mdMsg
Marktdaten-Abonnementmeldung.
cancellationToken
Stornierungs-Token, um die Operation abzubrechen.

Rückgabe: Ein ValueTask, der die asynchrone Operation darstellt.

OnTicksSubscriptionAsync
protected override ValueTask OnTicksSubscriptionAsync(MarketDataMessage mdMsg, CancellationToken cancellationToken)
result = polygonIOMessageAdapter.OnTicksSubscriptionAsync(mdMsg, cancellationToken)

Behandelt Abonnementanfrage für Ticks-Daten. Überschreiben, um Implementierung für Ticks-Abonnementverarbeitung bereitzustellen. Die Standardimplementierung wirft NotSupported.

mdMsg
Marktdaten-Abonnementmeldung.
cancellationToken
Stornierungs-Token, um die Operation abzubrechen.

Rückgabe: Ein ValueTask, der die asynchrone Operation darstellt.

ResetAsync
protected override ValueTask ResetAsync(ResetMessage resetMsg, CancellationToken cancellationToken)
result = polygonIOMessageAdapter.ResetAsync(resetMsg, cancellationToken)
Save
public override void Save(SettingsStorage storage)
polygonIOMessageAdapter.Save(storage)

Einstellungen speichern.

storage
Einstellungen Lagerung.
SecurityLookupAsync
protected override ValueTask SecurityLookupAsync(SecurityLookupMessage lookupMsg, CancellationToken cancellationToken)
result = polygonIOMessageAdapter.SecurityLookupAsync(lookupMsg, cancellationToken)