Skip to content
This repository has been archived by the owner on Sep 2, 2024. It is now read-only.

equibles/stocks-csharp

Repository files navigation

Equibles.Stocks - the C# library for the Stocks

Frameworks supported

  • .NET Core >=1.0
  • .NET Framework >=4.6
  • Mono/Xamarin >=vNext
  • UWP >=10.0

Dependencies

  • FubarCoder.RestSharp.Portable.Core >=4.0.7
  • FubarCoder.RestSharp.Portable.HttpClient >=4.0.7
  • Newtonsoft.Json >=10.0.3

Installation

Generate the DLL using your preferred tool

Then include the DLL (under the bin folder) in the C# project, and use the namespaces:

using Equibles.Stocks.Api;
using Equibles.Stocks.Client;
using Equibles.Stocks.Model;

Getting Started

using System;
using System.Diagnostics;
using Equibles.Stocks.Api;
using Equibles.Stocks.Client;
using Equibles.Stocks.Model;

namespace Example
{
    public class Example
    {
        public void main()
        {
            // Configure API key authorization: Query String
            Configuration.Default.ApiKey.Add("apiKey", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("apiKey", "Bearer");

            var apiInstance = new ExchangesApi();
            var apiKey = apiKey_example;  // string | 

            try
            {
                // List Exchanges
                ExchangesResponse result = apiInstance.CallList(apiKey);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ExchangesApi.CallList: " + e.Message );
            }
        }
    }
}

Documentation for API Endpoints

All URIs are relative to https://api.equibles.com

Class Method HTTP request Description
ExchangesApi CallList GET /stocks/exchanges/list List Exchanges
ExchangesApi Currencies GET /stocks/exchanges/currencies List Currencies
ExchangesApi Stocks GET /stocks/exchanges/stocks List Stocks
FundamentalsApi Dividends GET /stocks/fundamentals/dividends Dividends
FundamentalsApi FinancialReports GET /stocks/fundamentals/financialreports Financial Statements
MetricsApi PriceToEarnings GET /stocks/metrics/pricetoearnings Historical P/E
NewsApi CallList GET /stocks/news/list List News
NewsApi Publishers GET /stocks/news/publishers List Publishers
PerformanceApi CallList GET /stocks/performance/list Performance
PricesApi EndOfDay GET /stocks/prices/endofday End Of Day Prices
PricesApi Intraday GET /stocks/prices/intraday Intraday Prices
PricesApi Summary GET /stocks/prices/summary Latest trading day summary
SectorsApi CallList GET /stocks/sectors/list List Sectors
SectorsApi SearchStocks GET /stocks/sectors/searchstocks List Stocks
StocksApi CallList GET /stocks/list List Stocks
StocksApi Officers GET /stocks/officers Officers
StocksApi Profile GET /stocks/profile Profile
StocksApi Screener POST /stocks/screener Screener
StocksApi Search GET /stocks/search Search
StocksApi Splits GET /stocks/splits Splits
TransactionsApi Insiders GET /stocks/transactions/insiders Insider Transactions
TransactionsApi Institutional GET /stocks/transactions/institutional Institutional Transactions

Documentation for Models

Documentation for Authorization

Query String

  • Type: API key
  • API key parameter name: apiKey
  • Location: URL query string

About

C# wrapper for the Equibles stocks API.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages