Coder Social home page Coder Social logo

iex-api-dotnet's Introduction

iex-api-dotnet

Unofficial API for using the IEX Trading service

Currently still work in-progress

IEX

IEX is the stock exchange built for investors and companies.

The IEX API is a set of services designed for developers and engineers. It can be used to build high-quality apps and services. We’re always working to improve the IEX API. Please check back for enhancements and improvements.

The IEX API Documentations can be found here: (IEX API Documentation)[https://iextrading.com/developer/docs/]

Usage

Company information

string symbol = "msft";

var iex = new IEXClient();
var company = iex.GetCompany(symbol);

if (company != null)
{
	Console.WriteLine($"{company.companyName} - ({company.symbol})");
	Console.WriteLine($"CEO: {company.CEO}");
	Console.WriteLine($"Website: {company.website}");
}

Price information

string symbol = "msft";

var iex = new IEXClient();           
var quote = iex.GetStockQuote(symbol);

if (quote != null)
{
    Console.WriteLine($"Price: {quote.LatestPrice:C}");           
    Console.WriteLine($"Open-Close: {quote.Open:C}-{quote.Close:C}");
    Console.WriteLine($"Change: {quote.Change} ({quote.ChangePercent:P})");
    Console.WriteLine($"52 Week Range: {quote.Week52Low:C}-{quote.Week52High:C}");
}

Dividends

string symbol = "msft";

var iex = new IEXClient();            
var divs = iex.GetDividend(symbol, Range.OneYear);

if (divs != null)
{
    Console.WriteLine("Dividends:");
    foreach (var div in divs)
    {
        Console.WriteLine($"{div.RecordDate:dd-MMM-yyy} - {div.Amount:C}");
    }
}

Todo

Define types and definitions for specific API operations:

  • Stocks
  • Quote
  • Chart
  • Batch Requests
  • Book
  • Open / Close
  • Previous
  • Company
  • Key Stats
  • Peers
  • Relevant
  • News
  • Financials
  • Earnings
  • Dividends
  • Splits
  • Logo
  • Price
  • Delayed Quote
  • List
  • Effective Spread
  • Volume by Venue

Reference Data

  • Symbols

IEX Market Data

  • TOPS
  • Last
  • HIST
  • DEEP
  • Book
  • Trades
  • System Event
  • Trading Status
  • Operational Halt Status
  • Short Sale Price Test Status
  • Security Event
  • Trade Break
  • Auction

IEX Stats

  • Intraday
  • Recent
  • Records
  • Historical Summary
  • Historical Daily

Markets

  • Market

iex-api-dotnet's People

Contributors

gyurisc avatar

Stargazers

Roman avatar

Watchers

 avatar James Cloos avatar

iex-api-dotnet's Issues

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.