Use Warensoft Stock Service to compile high-frequency trading software-client-driven interface description, warensoftstock

Source: Internet
Author: User

Use Warensoft Stock Service to compile high-frequency trading software-client-driven interface description, warensoftstock

Warensoft Stock Service Api Client Interface Description

Warensoft Stock Service Api Client Reference

The client driver source code of this project has been published on GitHub. The address is as follows:

Https://github.com/warensoft/stockserviceclient

Warensoft Stock Service provides online financial algorithm services for users. This client has encapsulated the communication protocol for C # developers to call it.

Currently in the test phase, you can use the AppKey and SecretKey used for testing. This key pair will expire on January 1, May 10, 2017!

2. Available environment (Available Environments)

This client is compiled as. net standard 1.6. The supported runtime environments are as follows:

This client was compiled to. net standard 1.6, and the follow runtime are supported:

Runtime

Version

. Net standard

1.6 +

. Net framework

4.6.1 +

Portable

259

Xamarin

 

 

3. Setup)

This client needs to be installed through Nuget. You can search for "Warensoft" in Nuget and choose to install Warensoft. entLib. stockServiceClient if the client needs to use MVVM mode, you can choose to install Warensoft. entLib. common, as shown in:

This client needs to be installed through Nuget. users cocould find this component by typing "Warensoft", and then install "Warensoft. entLib. stockServiceClient ". if your client needs MVVM pattern support, you cocould also install "Warensoft. entLib. common ":

 

 

4. functions supported by the interface (2017.1.12) (Methods supported by this Client)

The class diagram is as follows:

The class digoal is shown as bellow:

 

 

The function list is as follows:

The Methods are listed as bellow:

Interface Name

Description

Getrecognition

Obtain the average real amplitude curve based on the K-line

Get 2.2.indicator

GetEMA

Obtain the Index Average based on the K-line

Get EMA indicator

GetKline

Obtain the keline of a Ticker based on its value.

Get K line by ticker

GetMACD

Obtain the exponential smoothing moving average line based on the K-line

Get MACD indicator

GetRSI

Obtain relative strength indicators based on the data key line

Get RSI indicator

GetSAR

Obtain the parabolic Indicator Based on the Data key line

Get SAR indicator

GetSMA

Obtain simple average indicators based on the keline

Get SMA indicator

GetWR

Obtain the Williams % R metric based on the data key

Get Williams % R indicator

 

5. Invoking Api)

  • Initialize the client driver. Here, AppKey and SecretKey are used for testing. (Initializing the client driver. Notice: the AppKey and SecretKey are test values, so do not use them in Production Environment)

var driver = new StockServiceDriver("C6651783-A3B9-4B72-8B02-A2E67A59C5A6", "6C442B3AF58D4DDA81BB03B353C0D7D8");

 

  • Get the target k lines)
List<Kline> kline = LoadKline();

 

  • Call the required interface (Invoke the interface you need)
var atr=driver.GetATR(kline,10);var ema=drvier.GetEMA(kline,10);…

 

Author: Scientist

Email: warensoft@163.com

43175692

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.