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
# CODE TO CALCULATE THE SPREAD AT A GIVEN DEPTH ON ALL CCXT EXCHANGES | |
# CREDIT TO @stalequant | |
# Python code by https://x.com/PythonLearnGang he is happy to help troubleshoot errors | |
import asyncio | |
import ccxt.pro | |
import matplotlib.pyplot as plt | |
import nest_asyncio | |
import numpy as np |
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 hre = require('hardhat'); | |
const { map } = require('underscore'); | |
require('dotenv').config(); | |
const { | |
FlashbotsBundleProvider, | |
} = require('@flashbots/ethers-provider-bundle'); | |
const ENS = require('./ENSABI.json'); |