Giter VIP home page Giter VIP logo

iqfeed.csharpapiclient's Introduction

IQFeed CSharp Api Client

Build status NuGet Version and Downloads count

IQFeed.CSharpApiClient is fastest and the most well designed C# DTN IQFeed socket API connector available to the open source community! Currently supporting the latest stable IQFeed protocol version 5.2.

IQFeed is an affordable and reputable Internet market data provider. For more info.

If you appreciate this project, please star it now!

Table of Contents

Features

  • Designed completely non-blocking from bottom-up with nice async/await interfaces
  • Streaming events are distributed in a consistent way using Action delegates
  • Handle multiple socket connections for at least 40% performance increase when requesting lookup data
  • Sockets are using SocketAsyncEventArgs for maximum performance and trying to reduce pressure on GC
  • Support for .NET Core (coming)

Usage

Installation

Install-Package IQFeed.CSharpApiClient

Configuration

Now, you need to set your API credentials and product id somewhere. You have 2 options, in your user environment variables or app.config.

User environment variables
  • Run rundll32 sysdm.cpl,EditEnvironmentVariables to open the Environment Variables
  • In your User variables, create 4 new ones:
    • IQCONNECT_LOGIN
    • IQCONNECT_PASSWORD
    • IQCONNECT_PRODUCT_ID
    • IQCONNECT_PRODUCT_VERSION (not mandatory, will fallback to 1.0.0.0)
app.config

In your appSettings section, assign values to these key:

<appSettings>
     <add key="IQConnect:login" value=""/>  
     <add key="IQConnect:password" value=""/>  
     <add key="IQConnect:product_id" value=""/>  
     <add key="IQConnect:product_version" value=""/>  
</appSettings>

Examples

Check IQFeed.CSharpApiClient.Example for more examples.

IQFeedLauncher.Start();
var lookupClient = LookupClientFactory.CreateNew();
lookupClient.Connect();
var ticksMessages = await lookupClient.Historical.ReqHistoryTickDatapointsAsync("AAPL", 100);

IQFeed API support status

  • Streaming data
    • Level 1 data ✔️
    • Level 2 data ❌
    • Derivative data (in progress)
    • Admin data ✔️
  • Lookup data
    • Historical data ✔️
    • News data ❌
    • Symbol Lookup data ❌
    • Chains Lookup data ✔️

Contributing

Pull requests are welcome! Don't hesitate to open an issue if something goes wrong.

iqfeed.csharpapiclient's People

Contributors

dependabot[bot] avatar mathpaquette avatar omencat avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.