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 requests | |
import json | |
import os | |
import dotenv | |
dotenv.load_dotenv() | |
# Surge API endpoint | |
url = "https://api.surge.app/messages" |
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 os | |
import sys | |
import logging | |
from datetime import datetime, timedelta | |
import requests | |
from dotenv import load_dotenv | |
import yfinance as yf | |
from collections import Counter, defaultdict | |
import re | |
from alpaca.trading.client import TradingClient |
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 os | |
import datetime | |
import codecs | |
import re | |
from decimal import Decimal | |
import numpy as np | |
import pandas as pd | |
import matplotlib.pyplot as plt | |
import yfinance as yf | |
from ofxtools.Client import OFXClient, InvStmtRq |
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 asyncio | |
import os | |
import requests | |
from dotenv import load_dotenv | |
load_dotenv(override=True) | |
async def transfer_to_alpaca(amount, direction): | |
try: | |
direction = "INCOMING" if direction == "IN" else "OUTGOING" |
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 { AddressLookupTableAccount, Connection, PublicKey, PublicKeyInitData, TransactionInstruction } from "@solana/web3.js"; | |
// import { Metaplex } from "@metaplex-foundation/js"; | |
import Bottleneck from "bottleneck"; | |
import { | |
fetchDigitalAssetWithAssociatedToken, | |
mplTokenMetadata, | |
findMetadataPda} from '@metaplex-foundation/mpl-token-metadata' | |
import { fromWeb3JsPublicKey, toWeb3JsPublicKey } from '@metaplex-foundation/umi-web3js-adapters' | |
import { createUmi } from '@metaplex-foundation/umi-bundle-defaults' | |
import { fetchIpfsMetadata } from "./fetchIpfsMetadata"; |
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
from solders.pubkey import Pubkey # type: ignore | |
from spl.token.instructions import get_associated_token_address | |
from construct import Padding, Struct, Int64ul, Flag | |
from walletTradingFunctions.config import client | |
from walletTradingFunctions.constants import PUMP_FUN_PROGRAM | |
# from config import client | |
# from constants import PUMP_FUN_PROGRAM | |
def get_virtual_reserves(bonding_curve: Pubkey): | |
bonding_curve_struct = Struct( |
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 os | |
# Set tokenizers parallelism before importing transformers | |
os.environ["TOKENIZERS_PARALLELISM"] = "false" | |
import subprocess | |
import json | |
import random | |
import requests | |
from pptx import Presentation | |
from pptx.util import Pt, Inches |
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
[package] | |
name = "lottery" | |
version = "0.1.0" | |
description = "Created with Anchor" | |
edition = "2021" | |
[lib] | |
crate-type = ["cdylib", "lib"] | |
name = "lottery" |
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 tweepy | |
import os | |
import json | |
import time | |
from dotenv import load_dotenv | |
from datetime import datetime, timedelta | |
# Load environment variables from .env | |
load_dotenv() |
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
(async function unfollowInactiveUsers() { | |
// Define a delay function with random variability | |
const delay = (min, max) => new Promise((resolve) => setTimeout(resolve, Math.random() * (max - min) + min)); | |
// Function to click the "Unfollow" button within the confirmation popup | |
async function confirmUnfollow() { | |
try { | |
// Select the "Unfollow" button in the confirmation dialog | |
const confirmButton = document.querySelector('button[data-testid="confirmationSheetConfirm"]'); | |
if (confirmButton) { |
NewerOlder