C# Class Next.NextClient

Inheritance: IDisposable
ファイルを表示 Open project: JohanLarsson/Next Class Usage Examples

Public Properties

Property Type Description
TestClient NextClient

Private Properties

Property Type Description
NextClient System
ResetTouchTimer void

Public Methods

Method Description
AccountLedgers ( Account account ) : Task>

https://api.test.nordnet.se/projects/api/wiki/REST_API_documentation#Get-account-ledgers

AccountOrders ( Account account ) : Task>

https://api.test.nordnet.se/projects/api/wiki/REST_API_documentation#Exchange-orders

AccountPositions ( Account account ) : Task>

https://api.test.nordnet.se/projects/api/wiki/REST_API_documentation#Get-account-positions

AccountSummary ( Account account ) : Task

https://api.test.nordnet.se/projects/api/wiki/REST_API_documentation#Get-account-summary

AccountTrades ( Account account ) : Task>

https://api.test.nordnet.se/projects/api/wiki/REST_API_documentation#Exchange-trades

Accounts ( ) : Task>

https://api.test.nordnet.se/projects/api/wiki/REST_API_documentation#Get-accounts

ChartData ( string identifier, string marketId ) : Task>

https://api.test.nordnet.se/projects/api/wiki/REST_API_documentation#Chart-data

Countries ( string derivativeType ) : Task>

https://api.test.nordnet.se/projects/api/wiki/REST_API_documentation#Derivatives

DeleteOrder ( string account, string orderId ) : Task

https://api.test.nordnet.se/projects/api/wiki/REST_API_documentation#Order-delete

Derivatives ( string derivativeType ) : Task>

https://api.test.nordnet.se/projects/api/wiki/REST_API_documentation#Derivatives

Dispose ( ) : void
Encrypt ( string username, string password, RSAParameters rsaParameters ) : string
Indices ( ) : Task>

https://api.test.nordnet.se/projects/api/wiki/REST_API_documentation#Get-indices

InstrumentSearch ( InstrumentDescriptor instrumentItem ) : Task
InstrumentSearch ( string identifier, string marketId ) : Task

https://api.test.nordnet.se/projects/api/wiki/REST_API_documentation#Instrument-lookup

InstrumentSearch ( InstrumentDescriptor descriptors ) : Task>

https://api.test.nordnet.se/projects/api/wiki/REST_API_documentation#Multiple-instrument-lookup

InstrumentSearch ( string query = null, string type = null, string country = null ) : Task>

https://api.test.nordnet.se/projects/api/wiki/REST_API_documentation#Instrument-search

ListItems ( string listId ) : Task>

https://api.test.nordnet.se/projects/api/wiki/REST_API_documentation#Get-list-items

Lists ( ) : Task>

https://api.test.nordnet.se/projects/api/wiki/REST_API_documentation#Get-lists

Login ( string username, string password ) : Task

https://api.test.nordnet.se/projects/api/wiki/REST_API_documentation#Login

Logout ( ) : Task

https://api.test.nordnet.se/projects/api/wiki/REST_API_documentation#Logout

Markets ( ) : Task>

https://api.test.nordnet.se/projects/api/wiki/REST_API_documentation#Get-markets

ModifyOrder ( string account, string orderId, decimal newPrice, uint newVolume ) : Task

https://api.test.nordnet.se/projects/api/wiki/REST_API_documentation#Order-modify

NewsItem ( string id ) : Task

https://api.test.nordnet.se/projects/api/wiki/REST_API_documentation#News-item

NewsSources ( ) : Task>

https://api.test.nordnet.se/projects/api/wiki/REST_API_documentation#News-sources

PlaceOrder ( OrderBuilder order ) : Task

https://api.test.nordnet.se/projects/api/wiki/REST_API_documentation#Order-entry

RealtimeAccess ( ) : Task>

https://api.test.nordnet.se/projects/api/wiki/REST_API_documentation#Realtime-access

RelatedMarkets ( string marketId, string identifier ) : Task>

https://api.test.nordnet.se/projects/api/wiki/REST_API_documentation#Related-markets

SearchNews ( string query = null, string sourceIds = null, int count = int.MaxValue, System.DateTime after = null ) : Task>

https://api.test.nordnet.se/projects/api/wiki/REST_API_documentation#News-search

ServiceStatus ( ) : Task
TickSizes ( string instrumentId ) : Task>

https://api.test.nordnet.se/projects/api/wiki/REST_API_documentation#Get-ticksize-table

Touch ( ) : Task

https://api.test.nordnet.se/projects/api/wiki/REST_API_documentation#Touch-session

TradingDays ( int marketId ) : Task>

https://api.test.nordnet.se/projects/api/wiki/REST_API_documentation#Get-valid-trading-days

Underlyings ( string derivativeType, string country ) : Task>

https://api.test.nordnet.se/projects/api/wiki/REST_API_documentation#Derivatives

Protected Methods

Method Description
OnLoggedInChanged ( ) : void

Private Methods

Method Description
NextClient ( ApiInfo apiInfo ) : System
ResetTouchTimer ( ) : void

Method Details

AccountLedgers() public method

https://api.test.nordnet.se/projects/api/wiki/REST_API_documentation#Get-account-ledgers
public AccountLedgers ( Account account ) : Task>
account Next.Dtos.Account
return Task>

AccountOrders() public method

https://api.test.nordnet.se/projects/api/wiki/REST_API_documentation#Exchange-orders
public AccountOrders ( Account account ) : Task>
account Next.Dtos.Account
return Task>

AccountPositions() public method

https://api.test.nordnet.se/projects/api/wiki/REST_API_documentation#Get-account-positions
public AccountPositions ( Account account ) : Task>
account Next.Dtos.Account
return Task>

AccountSummary() public method

https://api.test.nordnet.se/projects/api/wiki/REST_API_documentation#Get-account-summary
public AccountSummary ( Account account ) : Task
account Next.Dtos.Account
return Task

AccountTrades() public method

https://api.test.nordnet.se/projects/api/wiki/REST_API_documentation#Exchange-trades
public AccountTrades ( Account account ) : Task>
account Next.Dtos.Account
return Task>

Accounts() public method

https://api.test.nordnet.se/projects/api/wiki/REST_API_documentation#Get-accounts
public Accounts ( ) : Task>
return Task>

ChartData() public method

https://api.test.nordnet.se/projects/api/wiki/REST_API_documentation#Chart-data
public ChartData ( string identifier, string marketId ) : Task>
identifier string Nordnet instrument identifier, example: 101
marketId string Nordnet market identifier, example: 11
return Task>

Countries() public method

https://api.test.nordnet.se/projects/api/wiki/REST_API_documentation#Derivatives
public Countries ( string derivativeType ) : Task>
derivativeType string
return Task>

DeleteOrder() public method

https://api.test.nordnet.se/projects/api/wiki/REST_API_documentation#Order-delete
public DeleteOrder ( string account, string orderId ) : Task
account string
orderId string
return Task

Derivatives() public method

https://api.test.nordnet.se/projects/api/wiki/REST_API_documentation#Derivatives
public Derivatives ( string derivativeType ) : Task>
derivativeType string
return Task>

Dispose() public method

public Dispose ( ) : void
return void

Encrypt() public static method

public static Encrypt ( string username, string password, RSAParameters rsaParameters ) : string
username string
password string
rsaParameters System.Security.Cryptography.RSAParameters
return string

Indices() public method

https://api.test.nordnet.se/projects/api/wiki/REST_API_documentation#Get-indices
public Indices ( ) : Task>
return Task>

InstrumentSearch() public method

public InstrumentSearch ( InstrumentDescriptor instrumentItem ) : Task
instrumentItem Next.Dtos.InstrumentDescriptor
return Task

InstrumentSearch() public method

https://api.test.nordnet.se/projects/api/wiki/REST_API_documentation#Instrument-lookup
public InstrumentSearch ( string identifier, string marketId ) : Task
identifier string Nordnet instrument identifier, example: 101
marketId string Nordnet market identifier, example: 11
return Task

InstrumentSearch() public method

https://api.test.nordnet.se/projects/api/wiki/REST_API_documentation#Multiple-instrument-lookup
public InstrumentSearch ( InstrumentDescriptor descriptors ) : Task>
descriptors Next.Dtos.InstrumentDescriptor
return Task>

InstrumentSearch() public method

https://api.test.nordnet.se/projects/api/wiki/REST_API_documentation#Instrument-search
public InstrumentSearch ( string query = null, string type = null, string country = null ) : Task>
query string The search string to use. Example: ERI, VOL
type string The type of the instrument. Example: A, O, WNT, FND, FUT
country string The country to search in. Example: SE, DK, NO, FI, DE, US, CA
return Task>

ListItems() public method

https://api.test.nordnet.se/projects/api/wiki/REST_API_documentation#Get-list-items
public ListItems ( string listId ) : Task>
listId string
return Task>

Lists() public method

https://api.test.nordnet.se/projects/api/wiki/REST_API_documentation#Get-lists
public Lists ( ) : Task>
return Task>

Login() public method

https://api.test.nordnet.se/projects/api/wiki/REST_API_documentation#Login
public Login ( string username, string password ) : Task
username string
password string
return Task

Logout() public method

https://api.test.nordnet.se/projects/api/wiki/REST_API_documentation#Logout
public Logout ( ) : Task
return Task

Markets() public method

https://api.test.nordnet.se/projects/api/wiki/REST_API_documentation#Get-markets
public Markets ( ) : Task>
return Task>

ModifyOrder() public method

https://api.test.nordnet.se/projects/api/wiki/REST_API_documentation#Order-modify
public ModifyOrder ( string account, string orderId, decimal newPrice, uint newVolume ) : Task
account string
orderId string
newPrice decimal
newVolume uint
return Task

NewsItem() public method

https://api.test.nordnet.se/projects/api/wiki/REST_API_documentation#News-item
public NewsItem ( string id ) : Task
id string
return Task

NewsSources() public method

https://api.test.nordnet.se/projects/api/wiki/REST_API_documentation#News-sources
public NewsSources ( ) : Task>
return Task>

OnLoggedInChanged() protected method

protected OnLoggedInChanged ( ) : void
return void

PlaceOrder() public method

https://api.test.nordnet.se/projects/api/wiki/REST_API_documentation#Order-entry
public PlaceOrder ( OrderBuilder order ) : Task
order Next.Dtos.OrderBuilder
return Task

RealtimeAccess() public method

https://api.test.nordnet.se/projects/api/wiki/REST_API_documentation#Realtime-access
public RealtimeAccess ( ) : Task>
return Task>

RelatedMarkets() public method

https://api.test.nordnet.se/projects/api/wiki/REST_API_documentation#Related-markets
public RelatedMarkets ( string marketId, string identifier ) : Task>
marketId string
identifier string
return Task>

SearchNews() public method

https://api.test.nordnet.se/projects/api/wiki/REST_API_documentation#News-search
public SearchNews ( string query = null, string sourceIds = null, int count = int.MaxValue, System.DateTime after = null ) : Task>
query string The query string if omitted or empty all news are returned for the time period and sources.
sourceIds string Comma separated list of news sources. If empty or omitted all news sources that the user has the right to see is used
count int Max number of items in the result
after System.DateTime Specify a starting point for the search. If empty only news from today will be included in the search.
return Task>

ServiceStatus() public method

public ServiceStatus ( ) : Task
return Task

TickSizes() public method

https://api.test.nordnet.se/projects/api/wiki/REST_API_documentation#Get-ticksize-table
public TickSizes ( string instrumentId ) : Task>
instrumentId string
return Task>

Touch() public method

https://api.test.nordnet.se/projects/api/wiki/REST_API_documentation#Touch-session
public Touch ( ) : Task
return Task

TradingDays() public method

https://api.test.nordnet.se/projects/api/wiki/REST_API_documentation#Get-valid-trading-days
public TradingDays ( int marketId ) : Task>
marketId int
return Task>

Underlyings() public method

https://api.test.nordnet.se/projects/api/wiki/REST_API_documentation#Derivatives
public Underlyings ( string derivativeType, string country ) : Task>
derivativeType string
country string
return Task>

Property Details

TestClient public_oe static_oe property

Client using the testserver
public static NextClient,Next TestClient
return NextClient