pinets 0.2.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +38 -16
- package/dist/pinets.dev.browser.js +3201 -2527
- package/dist/pinets.dev.cjs +3419 -2577
- package/dist/pinets.dev.cjs.map +1 -1
- package/dist/pinets.dev.es.js +2949 -2120
- package/dist/pinets.dev.es.js.map +1 -1
- package/dist/pinets.min.browser.js +11 -12
- package/dist/pinets.min.cjs +11 -12
- package/dist/pinets.min.es.js +1 -2
- package/dist/types/Context.class.d.ts +17 -6
- package/dist/types/PineTS.class.d.ts +78 -4
- package/dist/types/Series.d.ts +10 -0
- package/dist/types/TimeSeries.class.d.ts +49 -0
- package/dist/types/TimeSeries.d.ts +15 -0
- package/dist/types/marketData/Mock/MockProvider.class.d.ts +77 -0
- package/dist/types/marketData/Provider.class.d.ts +6 -3
- package/dist/types/namespaces/array/PineArrayObject.d.ts +5 -0
- package/dist/types/namespaces/array/array.index.d.ts +135 -0
- package/dist/types/namespaces/array/methods/abs.d.ts +2 -0
- package/dist/types/namespaces/array/methods/avg.d.ts +2 -0
- package/dist/types/namespaces/array/methods/clear.d.ts +2 -0
- package/dist/types/namespaces/array/methods/concat.d.ts +2 -0
- package/dist/types/namespaces/array/methods/copy.d.ts +2 -0
- package/dist/types/namespaces/array/methods/covariance.d.ts +2 -0
- package/dist/types/namespaces/array/methods/every.d.ts +2 -0
- package/dist/types/namespaces/array/methods/fill.d.ts +2 -0
- package/dist/types/namespaces/array/methods/first.d.ts +2 -0
- package/dist/types/namespaces/array/methods/from.d.ts +2 -0
- package/dist/types/namespaces/array/methods/get.d.ts +2 -0
- package/dist/types/namespaces/array/methods/includes.d.ts +2 -0
- package/dist/types/namespaces/array/methods/indexof.d.ts +2 -0
- package/dist/types/namespaces/array/methods/insert.d.ts +2 -0
- package/dist/types/namespaces/array/methods/join.d.ts +2 -0
- package/dist/types/namespaces/array/methods/last.d.ts +2 -0
- package/dist/types/namespaces/array/methods/lastindexof.d.ts +2 -0
- package/dist/types/namespaces/array/methods/max.d.ts +2 -0
- package/dist/types/namespaces/array/methods/min.d.ts +2 -0
- package/dist/types/namespaces/array/methods/new.d.ts +2 -0
- package/dist/types/namespaces/array/methods/new_bool.d.ts +2 -0
- package/dist/types/namespaces/array/methods/new_float.d.ts +2 -0
- package/dist/types/namespaces/array/methods/new_int.d.ts +2 -0
- package/dist/types/namespaces/array/methods/new_string.d.ts +2 -0
- package/dist/types/namespaces/array/methods/param.d.ts +1 -0
- package/dist/types/namespaces/array/methods/pop.d.ts +2 -0
- package/dist/types/namespaces/array/methods/push.d.ts +2 -0
- package/dist/types/namespaces/array/methods/range.d.ts +2 -0
- package/dist/types/namespaces/array/methods/remove.d.ts +2 -0
- package/dist/types/namespaces/array/methods/reverse.d.ts +2 -0
- package/dist/types/namespaces/array/methods/set.d.ts +2 -0
- package/dist/types/namespaces/array/methods/shift.d.ts +2 -0
- package/dist/types/namespaces/array/methods/size.d.ts +2 -0
- package/dist/types/namespaces/array/methods/slice.d.ts +2 -0
- package/dist/types/namespaces/array/methods/some.d.ts +2 -0
- package/dist/types/namespaces/array/methods/sort.d.ts +2 -0
- package/dist/types/namespaces/array/methods/sort_indices.d.ts +2 -0
- package/dist/types/namespaces/array/methods/standardize.d.ts +2 -0
- package/dist/types/namespaces/array/methods/stdev.d.ts +2 -0
- package/dist/types/namespaces/array/methods/sum.d.ts +2 -0
- package/dist/types/namespaces/array/methods/unshift.d.ts +2 -0
- package/dist/types/namespaces/array/methods/variance.d.ts +2 -0
- package/dist/types/namespaces/input/input.index.d.ts +53 -0
- package/dist/types/namespaces/input/methods/any.d.ts +2 -0
- package/dist/types/namespaces/input/methods/bool.d.ts +2 -0
- package/dist/types/namespaces/input/methods/color.d.ts +2 -0
- package/dist/types/namespaces/input/methods/enum.d.ts +2 -0
- package/dist/types/namespaces/input/methods/float.d.ts +2 -0
- package/dist/types/namespaces/input/methods/int.d.ts +2 -0
- package/dist/types/namespaces/input/methods/param.d.ts +1 -0
- package/dist/types/namespaces/input/methods/price.d.ts +2 -0
- package/dist/types/namespaces/input/methods/session.d.ts +2 -0
- package/dist/types/namespaces/input/methods/source.d.ts +2 -0
- package/dist/types/namespaces/input/methods/string.d.ts +2 -0
- package/dist/types/namespaces/input/methods/symbol.d.ts +2 -0
- package/dist/types/namespaces/input/methods/text_area.d.ts +2 -0
- package/dist/types/namespaces/input/methods/time.d.ts +2 -0
- package/dist/types/namespaces/input/methods/timeframe.d.ts +2 -0
- package/dist/types/namespaces/input/types.d.ts +4 -0
- package/dist/types/namespaces/math/math.index.d.ts +77 -0
- package/dist/types/namespaces/math/methods/__eq.d.ts +1 -0
- package/dist/types/namespaces/math/methods/abs.d.ts +1 -0
- package/dist/types/namespaces/math/methods/acos.d.ts +1 -0
- package/dist/types/namespaces/math/methods/asin.d.ts +1 -0
- package/dist/types/namespaces/math/methods/atan.d.ts +1 -0
- package/dist/types/namespaces/math/methods/avg.d.ts +1 -0
- package/dist/types/namespaces/math/methods/ceil.d.ts +1 -0
- package/dist/types/namespaces/math/methods/cos.d.ts +1 -0
- package/dist/types/namespaces/math/methods/exp.d.ts +1 -0
- package/dist/types/namespaces/math/methods/floor.d.ts +1 -0
- package/dist/types/namespaces/math/methods/ln.d.ts +1 -0
- package/dist/types/namespaces/math/methods/log.d.ts +1 -0
- package/dist/types/namespaces/math/methods/log10.d.ts +1 -0
- package/dist/types/namespaces/math/methods/max.d.ts +1 -0
- package/dist/types/namespaces/math/methods/min.d.ts +1 -0
- package/dist/types/namespaces/math/methods/param.d.ts +1 -0
- package/dist/types/namespaces/math/methods/pow.d.ts +1 -0
- package/dist/types/namespaces/math/methods/random.d.ts +1 -0
- package/dist/types/namespaces/math/methods/round.d.ts +1 -0
- package/dist/types/namespaces/math/methods/sin.d.ts +1 -0
- package/dist/types/namespaces/math/methods/sqrt.d.ts +1 -0
- package/dist/types/namespaces/math/methods/sum.d.ts +1 -0
- package/dist/types/namespaces/math/methods/tan.d.ts +1 -0
- package/dist/types/namespaces/request/methods/param.d.ts +1 -0
- package/dist/types/namespaces/request/methods/security.d.ts +1 -0
- package/dist/types/namespaces/request/request.index.d.ts +14 -0
- package/dist/types/namespaces/request/utils/TIMEFRAMES.d.ts +1 -0
- package/dist/types/namespaces/request/utils/findSecContextIdx.d.ts +1 -0
- package/dist/types/namespaces/ta/getters/tr.d.ts +1 -0
- package/dist/types/namespaces/ta/methods/atr.d.ts +1 -0
- package/dist/types/namespaces/ta/methods/change.d.ts +1 -0
- package/dist/types/namespaces/ta/methods/crossover.d.ts +1 -0
- package/dist/types/namespaces/ta/methods/crossunder.d.ts +1 -0
- package/dist/types/namespaces/ta/methods/dev.d.ts +1 -0
- package/dist/types/namespaces/ta/methods/ema.d.ts +1 -0
- package/dist/types/namespaces/ta/methods/highest.d.ts +1 -0
- package/dist/types/namespaces/ta/methods/hma.d.ts +1 -0
- package/dist/types/namespaces/ta/methods/linreg.d.ts +1 -0
- package/dist/types/namespaces/ta/methods/lowest.d.ts +1 -0
- package/dist/types/namespaces/ta/methods/median.d.ts +1 -0
- package/dist/types/namespaces/ta/methods/mom.d.ts +1 -0
- package/dist/types/namespaces/ta/methods/param.d.ts +2 -0
- package/dist/types/namespaces/ta/methods/pivothigh.d.ts +1 -0
- package/dist/types/namespaces/ta/methods/pivotlow.d.ts +1 -0
- package/dist/types/namespaces/ta/methods/rma.d.ts +1 -0
- package/dist/types/namespaces/ta/methods/roc.d.ts +1 -0
- package/dist/types/namespaces/ta/methods/rsi.d.ts +1 -0
- package/dist/types/namespaces/ta/methods/sma.d.ts +1 -0
- package/dist/types/namespaces/ta/methods/stdev.d.ts +1 -0
- package/dist/types/namespaces/ta/methods/supertrend.d.ts +1 -0
- package/dist/types/namespaces/ta/methods/variance.d.ts +1 -0
- package/dist/types/namespaces/ta/methods/vwma.d.ts +1 -0
- package/dist/types/namespaces/ta/methods/wma.d.ts +1 -0
- package/dist/types/namespaces/ta/ta.index.d.ts +84 -0
- package/dist/types/namespaces/ta/utils/pivothigh.d.ts +1 -0
- package/dist/types/namespaces/ta/utils/pivotlow.d.ts +1 -0
- package/dist/types/transpiler/analysis/AnalysisPass.d.ts +5 -0
- package/dist/types/transpiler/analysis/ScopeManager.d.ts +36 -0
- package/dist/types/transpiler/transformers/ExpressionTransformer.d.ts +7 -0
- package/dist/types/transpiler/transformers/MainTransformer.d.ts +3 -0
- package/dist/types/transpiler/transformers/StatementTransformer.d.ts +9 -0
- package/dist/types/transpiler/utils/ASTFactory.d.ts +18 -0
- package/package.json +12 -3
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
export { PineArrayObject } from './PineArrayObject';
|
|
2
|
+
import { abs } from './methods/abs';
|
|
3
|
+
import { avg } from './methods/avg';
|
|
4
|
+
import { clear } from './methods/clear';
|
|
5
|
+
import { concat } from './methods/concat';
|
|
6
|
+
import { copy } from './methods/copy';
|
|
7
|
+
import { covariance } from './methods/covariance';
|
|
8
|
+
import { every } from './methods/every';
|
|
9
|
+
import { fill } from './methods/fill';
|
|
10
|
+
import { first } from './methods/first';
|
|
11
|
+
import { from } from './methods/from';
|
|
12
|
+
import { get } from './methods/get';
|
|
13
|
+
import { includes } from './methods/includes';
|
|
14
|
+
import { indexof } from './methods/indexof';
|
|
15
|
+
import { insert } from './methods/insert';
|
|
16
|
+
import { join } from './methods/join';
|
|
17
|
+
import { last } from './methods/last';
|
|
18
|
+
import { lastindexof } from './methods/lastindexof';
|
|
19
|
+
import { max } from './methods/max';
|
|
20
|
+
import { min } from './methods/min';
|
|
21
|
+
import { new_fn } from './methods/new';
|
|
22
|
+
import { new_bool } from './methods/new_bool';
|
|
23
|
+
import { new_float } from './methods/new_float';
|
|
24
|
+
import { new_int } from './methods/new_int';
|
|
25
|
+
import { new_string } from './methods/new_string';
|
|
26
|
+
import { param } from './methods/param';
|
|
27
|
+
import { pop } from './methods/pop';
|
|
28
|
+
import { push } from './methods/push';
|
|
29
|
+
import { range } from './methods/range';
|
|
30
|
+
import { remove } from './methods/remove';
|
|
31
|
+
import { reverse } from './methods/reverse';
|
|
32
|
+
import { set } from './methods/set';
|
|
33
|
+
import { shift } from './methods/shift';
|
|
34
|
+
import { size } from './methods/size';
|
|
35
|
+
import { slice } from './methods/slice';
|
|
36
|
+
import { some } from './methods/some';
|
|
37
|
+
import { sort } from './methods/sort';
|
|
38
|
+
import { sort_indices } from './methods/sort_indices';
|
|
39
|
+
import { standardize } from './methods/standardize';
|
|
40
|
+
import { stdev } from './methods/stdev';
|
|
41
|
+
import { sum } from './methods/sum';
|
|
42
|
+
import { unshift } from './methods/unshift';
|
|
43
|
+
import { variance } from './methods/variance';
|
|
44
|
+
declare const methods: {
|
|
45
|
+
abs: typeof abs;
|
|
46
|
+
avg: typeof avg;
|
|
47
|
+
clear: typeof clear;
|
|
48
|
+
concat: typeof concat;
|
|
49
|
+
copy: typeof copy;
|
|
50
|
+
covariance: typeof covariance;
|
|
51
|
+
every: typeof every;
|
|
52
|
+
fill: typeof fill;
|
|
53
|
+
first: typeof first;
|
|
54
|
+
from: typeof from;
|
|
55
|
+
get: typeof get;
|
|
56
|
+
includes: typeof includes;
|
|
57
|
+
indexof: typeof indexof;
|
|
58
|
+
insert: typeof insert;
|
|
59
|
+
join: typeof join;
|
|
60
|
+
last: typeof last;
|
|
61
|
+
lastindexof: typeof lastindexof;
|
|
62
|
+
max: typeof max;
|
|
63
|
+
min: typeof min;
|
|
64
|
+
new: typeof new_fn;
|
|
65
|
+
new_bool: typeof new_bool;
|
|
66
|
+
new_float: typeof new_float;
|
|
67
|
+
new_int: typeof new_int;
|
|
68
|
+
new_string: typeof new_string;
|
|
69
|
+
param: typeof param;
|
|
70
|
+
pop: typeof pop;
|
|
71
|
+
push: typeof push;
|
|
72
|
+
range: typeof range;
|
|
73
|
+
remove: typeof remove;
|
|
74
|
+
reverse: typeof reverse;
|
|
75
|
+
set: typeof set;
|
|
76
|
+
shift: typeof shift;
|
|
77
|
+
size: typeof size;
|
|
78
|
+
slice: typeof slice;
|
|
79
|
+
some: typeof some;
|
|
80
|
+
sort: typeof sort;
|
|
81
|
+
sort_indices: typeof sort_indices;
|
|
82
|
+
standardize: typeof standardize;
|
|
83
|
+
stdev: typeof stdev;
|
|
84
|
+
sum: typeof sum;
|
|
85
|
+
unshift: typeof unshift;
|
|
86
|
+
variance: typeof variance;
|
|
87
|
+
};
|
|
88
|
+
export declare class PineArray {
|
|
89
|
+
private context;
|
|
90
|
+
private _cache;
|
|
91
|
+
abs: ReturnType<typeof methods.abs>;
|
|
92
|
+
avg: ReturnType<typeof methods.avg>;
|
|
93
|
+
clear: ReturnType<typeof methods.clear>;
|
|
94
|
+
concat: ReturnType<typeof methods.concat>;
|
|
95
|
+
copy: ReturnType<typeof methods.copy>;
|
|
96
|
+
covariance: ReturnType<typeof methods.covariance>;
|
|
97
|
+
every: ReturnType<typeof methods.every>;
|
|
98
|
+
fill: ReturnType<typeof methods.fill>;
|
|
99
|
+
first: ReturnType<typeof methods.first>;
|
|
100
|
+
from: ReturnType<typeof methods.from>;
|
|
101
|
+
get: ReturnType<typeof methods.get>;
|
|
102
|
+
includes: ReturnType<typeof methods.includes>;
|
|
103
|
+
indexof: ReturnType<typeof methods.indexof>;
|
|
104
|
+
insert: ReturnType<typeof methods.insert>;
|
|
105
|
+
join: ReturnType<typeof methods.join>;
|
|
106
|
+
last: ReturnType<typeof methods.last>;
|
|
107
|
+
lastindexof: ReturnType<typeof methods.lastindexof>;
|
|
108
|
+
max: ReturnType<typeof methods.max>;
|
|
109
|
+
min: ReturnType<typeof methods.min>;
|
|
110
|
+
new: ReturnType<typeof methods.new>;
|
|
111
|
+
new_bool: ReturnType<typeof methods.new_bool>;
|
|
112
|
+
new_float: ReturnType<typeof methods.new_float>;
|
|
113
|
+
new_int: ReturnType<typeof methods.new_int>;
|
|
114
|
+
new_string: ReturnType<typeof methods.new_string>;
|
|
115
|
+
param: ReturnType<typeof methods.param>;
|
|
116
|
+
pop: ReturnType<typeof methods.pop>;
|
|
117
|
+
push: ReturnType<typeof methods.push>;
|
|
118
|
+
range: ReturnType<typeof methods.range>;
|
|
119
|
+
remove: ReturnType<typeof methods.remove>;
|
|
120
|
+
reverse: ReturnType<typeof methods.reverse>;
|
|
121
|
+
set: ReturnType<typeof methods.set>;
|
|
122
|
+
shift: ReturnType<typeof methods.shift>;
|
|
123
|
+
size: ReturnType<typeof methods.size>;
|
|
124
|
+
slice: ReturnType<typeof methods.slice>;
|
|
125
|
+
some: ReturnType<typeof methods.some>;
|
|
126
|
+
sort: ReturnType<typeof methods.sort>;
|
|
127
|
+
sort_indices: ReturnType<typeof methods.sort_indices>;
|
|
128
|
+
standardize: ReturnType<typeof methods.standardize>;
|
|
129
|
+
stdev: ReturnType<typeof methods.stdev>;
|
|
130
|
+
sum: ReturnType<typeof methods.sum>;
|
|
131
|
+
unshift: ReturnType<typeof methods.unshift>;
|
|
132
|
+
variance: ReturnType<typeof methods.variance>;
|
|
133
|
+
constructor(context: any);
|
|
134
|
+
}
|
|
135
|
+
export default PineArray;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function param(context: any): (source: any, index?: number) => any;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
export type { InputOptions } from './types';
|
|
2
|
+
import { any } from './methods/any';
|
|
3
|
+
import { bool } from './methods/bool';
|
|
4
|
+
import { color } from './methods/color';
|
|
5
|
+
import { enum_fn } from './methods/enum';
|
|
6
|
+
import { float } from './methods/float';
|
|
7
|
+
import { int } from './methods/int';
|
|
8
|
+
import { param } from './methods/param';
|
|
9
|
+
import { price } from './methods/price';
|
|
10
|
+
import { session } from './methods/session';
|
|
11
|
+
import { source } from './methods/source';
|
|
12
|
+
import { string } from './methods/string';
|
|
13
|
+
import { symbol } from './methods/symbol';
|
|
14
|
+
import { text_area } from './methods/text_area';
|
|
15
|
+
import { time } from './methods/time';
|
|
16
|
+
import { timeframe } from './methods/timeframe';
|
|
17
|
+
declare const methods: {
|
|
18
|
+
any: typeof any;
|
|
19
|
+
bool: typeof bool;
|
|
20
|
+
color: typeof color;
|
|
21
|
+
enum: typeof enum_fn;
|
|
22
|
+
float: typeof float;
|
|
23
|
+
int: typeof int;
|
|
24
|
+
param: typeof param;
|
|
25
|
+
price: typeof price;
|
|
26
|
+
session: typeof session;
|
|
27
|
+
source: typeof source;
|
|
28
|
+
string: typeof string;
|
|
29
|
+
symbol: typeof symbol;
|
|
30
|
+
text_area: typeof text_area;
|
|
31
|
+
time: typeof time;
|
|
32
|
+
timeframe: typeof timeframe;
|
|
33
|
+
};
|
|
34
|
+
export declare class Input {
|
|
35
|
+
private context;
|
|
36
|
+
any: ReturnType<typeof methods.any>;
|
|
37
|
+
bool: ReturnType<typeof methods.bool>;
|
|
38
|
+
color: ReturnType<typeof methods.color>;
|
|
39
|
+
enum: ReturnType<typeof methods.enum>;
|
|
40
|
+
float: ReturnType<typeof methods.float>;
|
|
41
|
+
int: ReturnType<typeof methods.int>;
|
|
42
|
+
param: ReturnType<typeof methods.param>;
|
|
43
|
+
price: ReturnType<typeof methods.price>;
|
|
44
|
+
session: ReturnType<typeof methods.session>;
|
|
45
|
+
source: ReturnType<typeof methods.source>;
|
|
46
|
+
string: ReturnType<typeof methods.string>;
|
|
47
|
+
symbol: ReturnType<typeof methods.symbol>;
|
|
48
|
+
text_area: ReturnType<typeof methods.text_area>;
|
|
49
|
+
time: ReturnType<typeof methods.time>;
|
|
50
|
+
timeframe: ReturnType<typeof methods.timeframe>;
|
|
51
|
+
constructor(context: any);
|
|
52
|
+
}
|
|
53
|
+
export default Input;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function param(context: any): (source: any, index?: number) => any[];
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { abs } from './methods/abs';
|
|
2
|
+
import { acos } from './methods/acos';
|
|
3
|
+
import { asin } from './methods/asin';
|
|
4
|
+
import { atan } from './methods/atan';
|
|
5
|
+
import { avg } from './methods/avg';
|
|
6
|
+
import { ceil } from './methods/ceil';
|
|
7
|
+
import { cos } from './methods/cos';
|
|
8
|
+
import { exp } from './methods/exp';
|
|
9
|
+
import { floor } from './methods/floor';
|
|
10
|
+
import { ln } from './methods/ln';
|
|
11
|
+
import { log } from './methods/log';
|
|
12
|
+
import { log10 } from './methods/log10';
|
|
13
|
+
import { max } from './methods/max';
|
|
14
|
+
import { min } from './methods/min';
|
|
15
|
+
import { param } from './methods/param';
|
|
16
|
+
import { pow } from './methods/pow';
|
|
17
|
+
import { random } from './methods/random';
|
|
18
|
+
import { round } from './methods/round';
|
|
19
|
+
import { sin } from './methods/sin';
|
|
20
|
+
import { sqrt } from './methods/sqrt';
|
|
21
|
+
import { sum } from './methods/sum';
|
|
22
|
+
import { tan } from './methods/tan';
|
|
23
|
+
import { __eq } from './methods/__eq';
|
|
24
|
+
declare const methods: {
|
|
25
|
+
abs: typeof abs;
|
|
26
|
+
acos: typeof acos;
|
|
27
|
+
asin: typeof asin;
|
|
28
|
+
atan: typeof atan;
|
|
29
|
+
avg: typeof avg;
|
|
30
|
+
ceil: typeof ceil;
|
|
31
|
+
cos: typeof cos;
|
|
32
|
+
exp: typeof exp;
|
|
33
|
+
floor: typeof floor;
|
|
34
|
+
ln: typeof ln;
|
|
35
|
+
log: typeof log;
|
|
36
|
+
log10: typeof log10;
|
|
37
|
+
max: typeof max;
|
|
38
|
+
min: typeof min;
|
|
39
|
+
param: typeof param;
|
|
40
|
+
pow: typeof pow;
|
|
41
|
+
random: typeof random;
|
|
42
|
+
round: typeof round;
|
|
43
|
+
sin: typeof sin;
|
|
44
|
+
sqrt: typeof sqrt;
|
|
45
|
+
sum: typeof sum;
|
|
46
|
+
tan: typeof tan;
|
|
47
|
+
__eq: typeof __eq;
|
|
48
|
+
};
|
|
49
|
+
export declare class PineMath {
|
|
50
|
+
private context;
|
|
51
|
+
private _cache;
|
|
52
|
+
abs: ReturnType<typeof methods.abs>;
|
|
53
|
+
acos: ReturnType<typeof methods.acos>;
|
|
54
|
+
asin: ReturnType<typeof methods.asin>;
|
|
55
|
+
atan: ReturnType<typeof methods.atan>;
|
|
56
|
+
avg: ReturnType<typeof methods.avg>;
|
|
57
|
+
ceil: ReturnType<typeof methods.ceil>;
|
|
58
|
+
cos: ReturnType<typeof methods.cos>;
|
|
59
|
+
exp: ReturnType<typeof methods.exp>;
|
|
60
|
+
floor: ReturnType<typeof methods.floor>;
|
|
61
|
+
ln: ReturnType<typeof methods.ln>;
|
|
62
|
+
log: ReturnType<typeof methods.log>;
|
|
63
|
+
log10: ReturnType<typeof methods.log10>;
|
|
64
|
+
max: ReturnType<typeof methods.max>;
|
|
65
|
+
min: ReturnType<typeof methods.min>;
|
|
66
|
+
param: ReturnType<typeof methods.param>;
|
|
67
|
+
pow: ReturnType<typeof methods.pow>;
|
|
68
|
+
random: ReturnType<typeof methods.random>;
|
|
69
|
+
round: ReturnType<typeof methods.round>;
|
|
70
|
+
sin: ReturnType<typeof methods.sin>;
|
|
71
|
+
sqrt: ReturnType<typeof methods.sqrt>;
|
|
72
|
+
sum: ReturnType<typeof methods.sum>;
|
|
73
|
+
tan: ReturnType<typeof methods.tan>;
|
|
74
|
+
__eq: ReturnType<typeof methods.__eq>;
|
|
75
|
+
constructor(context: any);
|
|
76
|
+
}
|
|
77
|
+
export default PineMath;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function __eq(context: any): (a: any, b: any) => boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function abs(context: any): (source: any) => number;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function acos(context: any): (source: any) => number;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function asin(context: any): (source: any) => number;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function atan(context: any): (source: any) => number;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function avg(context: any): (...sources: any[]) => number;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function ceil(context: any): (source: any) => number;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function cos(context: any): (source: any) => number;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function exp(context: any): (source: any) => number;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function floor(context: any): (source: any) => number;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function ln(context: any): (source: any) => number;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function log(context: any): (source: any) => number;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function log10(context: any): (source: any) => number;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function max(context: any): (...source: any[]) => number;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function min(context: any): (...source: any[]) => number;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function param(context: any): (source: any, index: any, name?: string) => any;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function pow(context: any): (source: any, power: any) => number;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function random(context: any): () => number;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function round(context: any): (source: any) => number;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function sin(context: any): (source: any) => number;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function sqrt(context: any): (source: any) => number;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function sum(context: any): (source: any, length: any) => number;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function tan(context: any): (source: any) => number;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function param(context: any): (source: any, index: any, name?: string) => any[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function security(context: any): (symbol: any, timeframe: any, expression: any, gaps?: boolean, lookahead?: boolean, ignore_invalid_symbol?: boolean, currency?: any, calc_bars_count?: any) => Promise<any>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { param } from './methods/param';
|
|
2
|
+
import { security } from './methods/security';
|
|
3
|
+
declare const methods: {
|
|
4
|
+
param: typeof param;
|
|
5
|
+
security: typeof security;
|
|
6
|
+
};
|
|
7
|
+
export declare class PineRequest {
|
|
8
|
+
private context;
|
|
9
|
+
private _cache;
|
|
10
|
+
param: ReturnType<typeof methods.param>;
|
|
11
|
+
security: ReturnType<typeof methods.security>;
|
|
12
|
+
constructor(context: any);
|
|
13
|
+
}
|
|
14
|
+
export default PineRequest;
|