Skip to content

Commit 6925281

Browse files
committed
Added bhavcopy
1 parent 92aed9f commit 6925281

File tree

6 files changed

+1498
-9
lines changed

6 files changed

+1498
-9
lines changed

example/passed.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
//All function
22

33
//convertToTradingSymbol
4-
//validateOrderInput
4+
//validateOrderInput
5+
//nodeUDF.download({year: 2021,month: "JAN",day: 1});

example/test2.js

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,18 @@
1+
const {
2+
async
3+
} = require('crypto-random-string');
14
const _udf = require('../index.js');
2-
let {convertToTradingSymbol,validateOrderInput} = new _udf();
35

4-
const testme = async() => {
6+
let nodeUDF = new _udf();
7+
8+
let {
9+
convertToTradingSymbol,
10+
validateOrderInput,
11+
download
12+
} = nodeUDF;
13+
14+
15+
const testme = async () => {
516
try {
617
let x = await validateOrderInput({
718
symbol: 'ACC',
@@ -22,7 +33,4 @@ const testme = async() => {
2233
}
2334
}
2435

25-
26-
testme();
27-
2836
//USDINR2110173CE

index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,9 @@ const SqlUDF = require('./dbfn/sqlUDF');
77
const BroadCastMessage = require('./telegram/broadcast');
88
const Pushlog = require('./telegram/logs');
99
const Quickfn = require('./telegram/quickfn');
10+
const BhavCopy = require('./public_api/bhavcopy');
1011

11-
class UDF extends Many(StringUDF, Table, InputValidation, ConvertToSymbol, SqlUDF, BroadCastMessage, Pushlog, Quickfn) {
12+
class UDF extends Many(StringUDF, Table, InputValidation, ConvertToSymbol, SqlUDF, BroadCastMessage, Pushlog, Quickfn,BhavCopy) {
1213
constructor(params) {
1314
super(params)
1415
this.params = params;

0 commit comments

Comments
 (0)