This file contains 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 json | |
import gspread | |
from oauth2client.service_account import ServiceAccountCredentials | |
from datetime import datetime, timezone | |
from coinbase_advanced_trader import coinbase_client | |
from coinbase_advanced_trader.config import set_api_credentials | |
# Link to Base Spreadsheet - https://docs.google.com/spreadsheets/d/1VYuy5cSnZiQqF4yp6_sVFpLXXXszCGEiMh-Z37mKims/edit?usp=sharing | |
COINBASE_PUBLIC_KEY = '' | |
COINBASE_PRIVATE_KEY = '' |
This file contains 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
{ | |
"API_KEY": "", | |
"API_SECRET": "", | |
"DEPOSIT_ID": "", | |
"PAYMENT_METHOD": "", | |
"DEPOSIT_AMOUNT": 10, | |
"DEPOSIT_CURRENCY": "USD", | |
"BTC_ADDRESS": "", | |
"WITHDRAW_CURRENCY": "BTC", | |
"WITHDRAWAL_ID": "", |
This file contains 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 json | |
import hmac | |
import hashlib | |
import time | |
import requests | |
from requests.auth import AuthBase | |
import os | |
with open(os.path.join(os.path.dirname(__file__), 'config.json')) as config_file: | |
config = json.load(config_file) |
This file contains 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 json | |
import hmac | |
import hashlib | |
import time | |
import requests | |
from requests.auth import AuthBase | |
import os | |
with open(os.path.join(os.path.dirname(__file__), 'config.json')) as config_file: | |
config = json.load(config_file) |
This file contains 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 random | |
print("---RANDOM NUMBERS---") | |
for i in range(5): | |
# Any number can be used in place of '0'. | |
random.seed(5) | |
# Generated random number will be between 1 to 1000. | |
print(random.randint(1, 1000)) | |
print("---END---") |
This file contains 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 http.client | |
import hmac | |
import hashlib | |
import json | |
import time | |
import base64 | |
import uuid | |
from enum import Enum | |
import math |
This file contains 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 time | |
import requests | |
import urllib.parse | |
import hashlib | |
import hmac | |
import base64 | |
import json | |
# Read Kraken API key and secret stored in environment variables | |
api_url = "https://api.kraken.com" |
This file contains 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 json | |
import gspread | |
import time | |
import sys | |
import base64 | |
import hashlib | |
import hmac | |
import urllib.request | |
import requests | |
from datetime import datetime, timezone |
This file contains 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 time | |
import sys | |
import json | |
import base64 | |
import hashlib | |
import hmac | |
import urllib.request | |
import requests | |
import datetime |
This file contains 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 ftx | |
import json | |
import random | |
YOUR_API_KEY = "" | |
YOUR_API_SECRET = "" | |
#Fill in your FTX API Keys above | |
coin = 'BTC' | |
#change COIN to 'ETH' for Ethereum, 'ADA' for Cardano (etc) |
NewerOlder