Socket
Book a DemoInstallSign in
Socket

wscn-tilesetQuote-component

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wscn-tilesetQuote-component

wscn-tilesetQuote-component

latest
npmnpm
Version
0.2.5
Version published
Maintainers
1
Created
Source

What's wscn-tilesetQuote-component ?

It's a react component,you can use it easily in everywhere.

How to use?

npm install wscn-tilesetQuote-component 

it's depend

  • classnames
  • react
  • react-dom
  • axios

you can easily get it with react-vendor;

npm install wscn-react-vendor 

Example

	<link href="**/marketComponents-default.css" rel="stylesheet">
	
	<div id="root"></div>
	
	<script src="**/wscn-react-vendor.min.js"></script>
	<script src="/**/react-market.min.js"></script>
	
	<script>
		var mountDom = document.getElementById('root');
        var options = {
            symbols: [
                "XAUUSD",
                "UKOil",
                "000001",
                "EURUSD",
                "USDJPY"
            ],
            priceMinInterval: 2000,
            baseApi: "https://forexdata.wallstreetcn.com/",
            priceApi: "real",
            priceApiField: "prod_name,last_px,px_change,px_change_rate,price_precision,securities_type",
            klineApi: "kline",
            candle_period:5,
            data_count:80,
            end_time:0,
            klineApiField: "close_px"
        };
        new WSCNTilesetQuote(options).init(mountDom);
	<script>		

demo:

demo

PropertyTypeDescriptiondefault
symbolsarraythe symbols you want show["XAUUSD","UKOil","000001","EURUSD","USDJPY"]
priceMinIntervalnumberthe price loop minInterval time5*1000
candle_periodnumberkline period5
data_countnumberkline count80

candle_period 参数说明

参数含义
candle_periodK线类型
11分钟
25分钟
315分钟
430分钟
51小时
62小时
74小时
81天
10周线
111月

dev

dev is use webpack-dll so if you are the first time run ,you should

$ npm run dll-dev

make vendor-manifest-dev.json first

otherwise

$ npm start

you will see in http://localhost:9527;

build

$ npm build

you will see in http://localhost:9528; demmo:

demo

Keywords

react

FAQs

Package last updated on 01 Nov 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts