Table of Contents

Class MassiveRestClient

Namespace
MassiveDotNet.Rest
Assembly
MassiveDotNet.Rest.dll

The entry point to the Massive REST API. Endpoints are reached through groups that mirror the platform's own taxonomy, for example Stocks and Reference.

public sealed class MassiveRestClient : IDisposable
Inheritance
MassiveRestClient
Implements
Inherited Members

Remarks

This type is thread-safe and intended to be long-lived. Create one per application and share it, rather than creating one per request.

Constructors

MassiveRestClient(MassiveHttpTransport)

Creates a client over a caller-supplied transport, for use with dependency injection. The caller retains ownership of the transport's lifetime.

public MassiveRestClient(MassiveHttpTransport transport)

Parameters

transport MassiveHttpTransport

The transport to issue requests on.

Exceptions

ArgumentNullException

transport is null.

MassiveRestClient(MassiveClientOptions)

Creates a client from a full set of options.

public MassiveRestClient(MassiveClientOptions options)

Parameters

options MassiveClientOptions

The client configuration.

MassiveRestClient(string)

Creates a client authenticated with an API key.

public MassiveRestClient(string apiKey)

Parameters

apiKey string

The Massive API key.

Properties

Reference

Reference data: tickers, news, corporate actions, exchanges, and conditions.

public ReferenceGroup Reference { get; }

Property Value

ReferenceGroup

Stocks

US equities: aggregates, trades, quotes, snapshots, and technical indicators.

public StocksGroup Stocks { get; }

Property Value

StocksGroup

Methods

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Dispose()