Mit den dxFeed Graal C/C++ und .NET-APIs können Sie beginnen, Ihre Marktereignisse zu empfangen, indem Sie einfach nur wenige Zeilen Code schreiben.

Bezeichnung
Systemanforderungen
Quelle
Dokumentation
dxFeed Graal C/C++ API
Windows: Visual C++ Redistributable 2015 with C Runtime (CRT) v14
Linux: libc 2.12+

Vollständige Liste der Anforderungen
dxFeed Graal .NET API
Visual C++ Redistributable 2015 with C Runtime (CRT) v14
.Net 4.5+

Vollständige Liste der Anforderungen

dxFeed Graal .NET API Beispiel

using System;
using DxFeed.Graal.Net.Api;
using DxFeed.Graal.Net.Events.Market;

// For token-based authorization, use the following address format:
// "demo.dxfeed.com:7300[login=entitle:token]"
using var endpoint = DXEndpoint.Create().Connect("demo.dxfeed.com:7300");
using var subscription = endpoint.GetFeed().CreateSubscription(typeof(Quote));
subscription.AddEventListener(events =>
{
    foreach (var e in events)
    {
        Console.WriteLine(e);
    }
});
subscription.AddSymbols("AAPL");
Console.ReadKey();

 

dxFeed Graal C/C++ API Beispiel

#include <iostream>
#include <dxfeed_graal_cpp_api/api.hpp>

int main() {
    using namespace dxfcpp;
    
    // For token-based authorization, use the following address format:
    // "demo.dxfeed.com:7300[login=entitle:token]"
    auto endpoint = DXEndpoint::newBuilder()
            ->withProperty("dxfeed.address", "demo.dxfeed.com:7300")
            ->build();
    
    // Another way to connect the endpoint.
    // auto endpoint = DXEndpoint::create()->connect("demo.dxfeed.com:7300");
    
    auto subscription = endpoint->getFeed()->createSubscription(Quote::TYPE);
    
    subscription->addEventListener([](auto&& events) {
        for (auto&& e : events) {
            std::cout << e << "\n";
        }
    });
    
    subscription->addSymbols({"AAPL"});
    
    std::cin.get();
}