Skip to content

Instantly share code, notes, and snippets.

View riordant's full-sized avatar
💯

tadhg riordant

💯
View GitHub Profile
@riordant
riordant / bittrex_get_usdt_balance.py
Last active January 13, 2018 01:37
A script to get your total USDT balance on Bittrex via the API. Create API/secret combo on Bittrex and insert under 'key' and 'secret'
from time import time
import hashlib
import hmac
import requests
key = "API_KEY"
secret = "SECRET_KEY"
nonce = str(int(time() * 1000))
#sign and call the url.
@riordant
riordant / ModExp.sol
Last active November 15, 2018 13:24 — forked from lionello/ModExp.sol
Solidity wrapper for Ethereum Byzantium's BigInt `modexp` built-in contract 0x5
// Wrapper for built-in BigNumber_modexp (contract 0x5) as described here. https://github.com/ethereum/EIPs/pull/198
function modexp(bytes memory _base, bytes memory _exp, bytes memory _mod) internal view returns(bytes memory ret) {
assembly {
let bl := mload(_base)
let el := mload(_exp)
let ml := mload(_mod)
@riordant
riordant / btceur-arbitrage.py
Last active December 13, 2017 18:13
A small python script to detect bitcoin-euro arbitrage opportunities between a number of popular euro cryptocurrency exchanges.
import requests
import json
import pdb
import time
import sys
BUY = 0
SELL = 1