Skip to content

Instantly share code, notes, and snippets.

View abramsymons's full-sized avatar

Mahdi Heydari abramsymons

View GitHub Profile
import numpy as np
import math
# prices = [1, 1.1, 0, 1.1, 1.0, 1.2, 100, 100, 100, 1.1, 1.3, 5, 1.2, 1.1, .9, .95, 1.1]
prices = [200, 200, 300, 3, 400, 400, 400, 200, 300, 300, 500, 600, 90]
threshold = 2
# outlier detection using Z score and removing them
def removeOutlier(prices):
import json
import time
import requests
import base64
import ed25519
URL = 'http://test.brightid.org/brightid/v6/operations'
PRIVATE = ''
op = {
{
"name": "ZBTC",
"website": "https://zellular.xyz",
"description": "Zellular Bridge for Bitcoin",
"logo": "https://docs.zellular.xyz/zbtc.png",
"twitter": "https://x.com/zellular_xyz"
}
{
"name": "ZEX",
"website": "https://docs.zellular.xyz/zex",
"description": "Zellular Exchange",
"logo": "https://docs.zellular.xyz/zex.png",
"twitter": "https://x.com/zex_trade"
}
{
"name": "Zellular-operator5",
"website": "https://zellular.xyz/",
"description": "Zellular Operator 5",
"logo": "https://gist.githubusercontent.com/siftal/f9cfbc435812c9261b245b6b08a7c980/raw/c2ee3d94efdb9fdf8c9dd02f92e2786365c7c894/zellular-operator1.png",
"twitter": "https://x.com/zellular_xyz/"
}