File tree 1 file changed +2
-5
lines changed
1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -19,17 +19,14 @@ const symbol = 'BTC/USDT:USDT';
19
19
async function main ( ) {
20
20
try {
21
21
// proxy
22
- const agent = HttpsProxyAgent ( 'http://51.83.140.52:11230' ) ;
23
22
// test cjs version
24
- const exchange = new ccxt . bybit ( { } ) ;
25
- exchange . agent = agent ;
23
+ const exchange = new ccxt . gate ( { } ) ;
26
24
const ticker = await exchange . fetchTicker ( symbol ) ;
27
25
assert ( ticker !== undefined ) ;
28
26
assert ( ticker [ 'symbol' ] === symbol ) ;
29
27
log . bright . green ( '[CJS Code] OK' ) ;
30
28
// test cjs bundle version
31
- const exchangeBundle = new ccxtBundle . bybit ( { } ) ;
32
- exchangeBundle . agent = agent ;
29
+ const exchangeBundle = new ccxtBundle . gate ( { } ) ;
33
30
const tickeBundle = await exchangeBundle . fetchTicker ( symbol ) ;
34
31
assert ( tickeBundle !== undefined ) ;
35
32
assert ( tickeBundle [ 'symbol' ] === symbol ) ;
You can’t perform that action at this time.
0 commit comments