Skip to content

Instantly share code, notes, and snippets.

View brettkrueger's full-sized avatar

Brett Krueger brettkrueger

View GitHub Profile
function create-swarm() {
alias dm="docker-machine"
alias dms="docker-machine ssh"
NODE_PREFIX=${1:0:1}
NODE_COUNT=${1:1:1}
MANAGER_PREFIX=${2:0:1}
MANAGER_COUNT=${2:1:1}
if [ -z ${NODE_PREFIX} ]; then NODE_PREFIX="n"; fi
const getIndicators = async (req, res) => {
binance2 = new ccxt.binance()
coins = await binance2.fetchMarkets()
pairs = []
coins.forEach(pair => {
pairs.push(pair.symbol.replace('/',''))
})
console.log(pairs.slice(0, 20))
timeframe = req.params.timeframe || "1D"
direction = req.params.direction.toUpperCase() || "BOTH"

Keybase proof

I hereby claim:

  • I am brettkrueger on github.
  • I am brettkrueger (https://keybase.io/brettkrueger) on keybase.
  • I have a public key ASAPZSr_IZYqnHnII-_Tm6LQcTbBdz0DRhN_ZSY_Aq7qggo

To claim this, I am signing this object: