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
import json | |
import gemini | |
public_key = "" | |
private_key = "" | |
symbol = "BTCUSD" | |
tick_size = 8 | |
quote_currency_price_increment = 2 | |
buy_amount = 20 | |
#update symbol based on what crypto/fiat pair you want to buy. Default is BTCUSD, change to BTCEUR for Euros or ETHUSD for Ethereum (for example) - see all possibilities down in symbols and minimums link |
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
import json | |
import gemini | |
import random | |
import math | |
public_key = "" | |
private_key = "" | |
coin_to_withdrawal="BTC" | |
trader = gemini.PrivateClient(public_key, private_key) |
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
import json | |
import gemini | |
public_key = '' | |
private_key = '' | |
#This function converts all your GUSD to USD | |
def _convertGUSDtoUSD(pub_key, priv_key): | |
gusd_balance = 0 | |
trader = gemini.PrivateClient(pub_key, priv_key) |
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
import json | |
import gemini | |
from math import floor | |
public_key = "" | |
private_key = "" | |
symbol = 'BATBTC' | |
tick_size = 6 | |
quote_currency_price_increment = 8 | |
#update symbol based on what crypto/fiat pair you want to buy. Default is BATBTC, change to BATETH for ETH or BATUSD for USD (for example) - see all possibilities down in symbols and minimums link |
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
import json | |
import gemini | |
public_key = "" | |
private_key = "" | |
symbol = "BTCUSD" | |
tick_size = 8 | |
quote_currency_price_increment = 2 | |
#update symbol based on what crypto/fiat pair you want to buy. Default is BTCUSD, change to BTCEUR for Euros or ETHUSD for Ethereum (for example) - see all possibilities down in symbols and minimums link | |
#update tick_size and quote_currency_price_increment based on what crypto-pair you are buying. BTC is 8 - in the doc it says 1e-8 you want the number after e-. Or in the case of .01 you want 2 (because .01 is 1e-2) |
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
import json | |
import gemini | |
import requests | |
public_key="" | |
private_key="" | |
#Fear and Greed indicator: Set to True if you want to include Fear and Greed data | |
INCLUDE_FEAR_AND_GREED = True | |
#If the Fear and Greed indicator is below FEAR_FLOOR, multiply amount purchased by FEAR_MULTIPLIER |
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
import json | |
import gemini | |
#you need sandbox public keys / private keys | |
#you can view your trades at https://exchange.sandbox.gemini.com/ | |
public_key = "" | |
private_key = "" | |
symbol = "BTCUSD" | |
tick_size = 8 |
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
import json | |
import gemini | |
import requests | |
GEMINI_PUBLIC_KEY = "" | |
GEMINI_PRIVATE_KEY = "" | |
symbol = "BTCUSD" | |
tick_size = 8 | |
quote_currency_price_increment = 2 | |
buy_amount = 100 |
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
import cbpro | |
import json | |
#Insert your API key, secret, and passphrase from Coinbase Pro | |
my_key = "" | |
my_secret = "" | |
my_passphrase = "" | |
#Replace symbol with whatever currencypair you want to trade - list of currency pairs available on Notion | |
symbol = "BTC-USD" |
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
import cbpro | |
import json | |
#Insert your API key, secret, and passphrase from Coinbase Pro | |
my_key = "" | |
my_secret = "" | |
my_passphrase = "" | |
auth_client = cbpro.AuthenticatedClient(my_key, my_secret, my_passphrase) | |
#Replace symbol with whatever currencypair you want to trade - list of currency pairs available on Notion |
OlderNewer