0.2.5 • Published 9 years ago

wscn-tilesetQuote-component v0.2.5

Weekly downloads
2
License
MIT
Repository
-
Last release
9 years ago

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

0.2.5

9 years ago

0.2.4

9 years ago

0.2.3

9 years ago

0.2.2

9 years ago

0.2.1

9 years ago

0.2.0

9 years ago

0.1.9

9 years ago

0.1.8

9 years ago

0.1.7

9 years ago

0.1.6

9 years ago

0.1.5

9 years ago

0.1.4

9 years ago

0.1.3

9 years ago

0.1.2

9 years ago

0.1.1

9 years ago

0.1.0

9 years ago