This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Assumes Ubuntu installation | |
| # Uninstall all conflicting packages | |
| sudo apt remove $(dpkg --get-selections docker.io docker-compose docker-compose-v2 docker-doc podman-docker containerd runc | cut -f1) | |
| # Add Docker's official GPG key: | |
| sudo apt update -y | |
| sudo apt install ca-certificates curl | |
| sudo install -m 0755 -d /etc/apt/keyrings | |
| sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const Api1 = require('node-binance-api'); | |
| const Api2 = require('node-binance-api'); | |
| let singleton1 = Api1(); | |
| let singleton2 = Api2(); | |
| let instance1 = new Api1(); | |
| let instance2= new Api1(); | |
| const OPTION_NAME = 'recvWindow'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| let api = function Binance() { | |
| let self = this; | |
| self.cache = 0; | |
| return { | |
| setCache: function(val) { | |
| self.cache = val; | |
| }, | |
| getCache: function() { |