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
transportMassiveHttpTransportThe transport to issue requests on.
Exceptions
- ArgumentNullException
transportis null.
MassiveRestClient(MassiveClientOptions)
Creates a client from a full set of options.
public MassiveRestClient(MassiveClientOptions options)
Parameters
optionsMassiveClientOptionsThe client configuration.
MassiveRestClient(string)
Creates a client authenticated with an API key.
public MassiveRestClient(string apiKey)
Parameters
apiKeystringThe Massive API key.
Properties
Reference
Reference data: tickers, news, corporate actions, exchanges, and conditions.
public ReferenceGroup Reference { get; }
Property Value
Stocks
US equities: aggregates, trades, quotes, snapshots, and technical indicators.
public StocksGroup Stocks { get; }
Property Value
Methods
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()