GetValue

(require("GetValue"))({, label, indexopt) → {Number}

Source:

get value

Parameters:
Name Type Attributes Default Description
{ Object

fields, value, }

label String
index Number <optional>
0
Returns:
Type
Number

Methods

(static) checkDay5(source, tradeDate, tradetime) → {Array}

Source:

check 5 day

Parameters:
Name Type Description
source Object
tradeDate Number
tradetime Number
Returns:
Type
Array

(static) checkDayZero(source) → {Array}

Source:

check day zero

Parameters:
Name Type Description
source Object
Returns:
Type
Array

(static) checkZero(value, fields) → {Boolean}

Source:

check zero

Parameters:
Name Type Description
value Array
fields Object
Returns:
Type
Boolean

(static) findDateInDay(source, today) → {Object}

Source:

find date in day

Parameters:
Name Type Description
source Object
today Number
Returns:
Type
Object

(static) findIndexInMin(source, index) → {Object}

Source:

find index in min

Parameters:
Name Type Description
source Object
index Number
Returns:
Type
Object

(static) fromIndexToTradeTime(tindex, tradetime, tradeDate) → {Number}

Source:

convert index to trade time

Parameters:
Name Type Description
tindex Number
tradetime Number
tradeDate Number
Returns:
Type
Number

(static) fromTradeTimeToIndex(ttime, tradetime) → {Number}

Source:

convert time t to trade time

Parameters:
Name Type Description
ttime Number
tradetime Number
Returns:
Type
Number

(static) getExrightPriceRange(start, stop, price, rights) → {Number}

Source:

Get an exemption price for a price

Parameters:
Name Type Description
start Number
stop Number
price Number
rights Array
Returns:
Type
Number

(static) getMinuteCount(tradetime) → {Number}

Source:

get minute count

Parameters:
Name Type Description
tradetime Number
Returns:
Type
Number

(static) getSize(source) → {Boolean}

Source:

get size

Parameters:
Name Type Description
source Object
Returns:
Type
Boolean

(static) getValueMax(data, label, value) → {Number}

Source:

get max value

Parameters:
Name Type Description
data Array
label String
value Number
Returns:
Type
Number

(static) getValueMin(data, label, value) → {Number}

Source:

get min value

Parameters:
Name Type Description
data Array
label String
value Number
Returns:
Type
Number

(static) getZipDay(daydata, rate) → {Array}

Source:

get zip day

Parameters:
Name Type Description
daydata Array
rate Number
Returns:
Type
Array

(static) matchDayToMon(daydata) → {Array}

Source:

convert day data to month data

Parameters:
Name Type Description
daydata Array
Returns:
Type
Array

(static) matchDayToWeek(daydata) → {Array}

Source:

convert day data to week data

Parameters:
Name Type Description
daydata Array
Returns:
Type
Array

(static) outputDay5(source, tradetime) → {Array}

Source:

out put 5 day

Parameters:
Name Type Description
source Object
tradetime Number
Returns:
Type
Array

(static) transExrightDay(days, rights, mode, start, end) → {Array}

Source:
Parameters:
Name Type Description
days Array
rights Array
mode String
start Number
end Number
Returns:
Type
Array

(static) transExrightMin(days, rights, mode, start, end) → {Array}

Source:

transfer exrigth min data

Parameters:
Name Type Description
days Array
rights Array
mode String
start Number
end Number
Returns:
Type
Array

(static) updateStatic(fields, value) → {Array}

Source:

update static

Parameters:
Name Type Description
fields Object
value Array
Returns:
Type
Array

(inner) _getExrightPara(rightdata) → {Object}

Source:

get exright para

Parameters:
Name Type Description
rightdata String
Returns:
Type
Object

(inner) _getExrightPrice(price, rightpara, mode) → {Number}

Source:
Parameters:
Name Type Description
price Number
rightpara Object
mode String
Returns:
Type
Number

(inner) _isRight(dateBegin, dateEnd, rightdate) → {Boolean}

Source:

check is right

Parameters:
Name Type Description
dateBegin Date
dateEnd Date
rightdate Date
Returns:
Type
Boolean