Billionz
Billionz
DDeno
Created by Billionz on 12/4/2023 in #help
NPM CCXT Not Working
I'm trying to run the NPM Package CCXT and I'm getting an "ERR_MODULE_NOT_FOUND" error any help in resolving would be much appreciated. TypeError: Could not resolve 'debug' from 'file:///Users/xxx/Library/Caches/deno/npm/registry.npmjs.org/ccxt/4.1.75/js/src/static_dependencies/proxies/http-proxy-agent/index.js'.
import ccxt, { Exchange, Order } from 'npm:ccxt'
export const ccxtpro = ccxt.pro

const bybit = new ccxtpro.bybit({
enableRateLimit: false,
options: { defaultType: 'swap' },
})

for (let index = 0; index < 5; index++) {
try {
console.log('fetch data ')
console.time('Fetch Ticker ' + index)
const ticker = await bybit.fetchTicker('BTC/USDT:USDT')
console.timeEnd('Fetch Ticker ' + index)
logger.info(index + ' ' + ticker.last)
} catch (error) {
console.log(error)
}
}
import ccxt, { Exchange, Order } from 'npm:ccxt'
export const ccxtpro = ccxt.pro

const bybit = new ccxtpro.bybit({
enableRateLimit: false,
options: { defaultType: 'swap' },
})

for (let index = 0; index < 5; index++) {
try {
console.log('fetch data ')
console.time('Fetch Ticker ' + index)
const ticker = await bybit.fetchTicker('BTC/USDT:USDT')
console.timeEnd('Fetch Ticker ' + index)
logger.info(index + ' ' + ticker.last)
} catch (error) {
console.log(error)
}
}
11 replies
DDeno
Created by Billionz on 12/4/2023 in #help
How do you use a private docker hub image on AWS Lightsail?
I'm following the guide here https://docs.deno.com/runtime/manual/advanced/deploying_deno/aws_lightsail Although how do you use a private docker hub image on AWS Lightsail? Otherwise all your code is public.
4 replies
DDeno
Created by Billionz on 1/20/2023 in #help
Best place to host server side Deno App
I have a server side app I want to host in a specific region and I only want 1 instance of it running at a time, so deno deploy is not really right for this. Are there any other hosting services that are deno friendly?
37 replies
DDeno
Created by Billionz on 1/18/2023 in #help
NPM Import missing types
11 replies