13 lines
410 B
Python
Executable File
13 lines
410 B
Python
Executable File
import sys
|
|
import json
|
|
|
|
exchanges = ["binance","okex","kucoin","gateio"]
|
|
pais = []
|
|
for exchange in exchanges:
|
|
with open(f"../configs/{exchange}.json") as f:
|
|
pairs = json.load(f)["pairs"]
|
|
for pair in pairs:
|
|
if pair in [sys.argv[1],sys.argv[1].replace("/","")]:
|
|
print(f"{pair} is already running on {exchange}")
|
|
sys.exit(1)
|
|
print("Pair is not running") |