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
import logging | |
from asyncio import BaseEventLoop, gather, get_event_loop, sleep, Task | |
from functools import partial | |
from os import environ | |
from pybit import inverse_futures, inverse_perpetual | |
""" | |
env variables - please make sure these are set (i.e `export BYBIT_API_KEY=abc1234`) | |
BYBIT_API_KEY= |
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
/*globals db*/ | |
db.system.js.save({ | |
_id : 'CSVPrinter', | |
value : function CSVPrinter() { | |
var firstRun = true; | |
function checkFirstRun(record){ | |
if (firstRun) { | |
firstRun = false; |
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
function bg() | |
{ | |
if ($args.length -lt 0) | |
{ | |
Write-Output "No parameters specified"; | |
return; | |
} | |
if ($args.length -gt 1) | |
{ |