Skip to content

Instantly share code, notes, and snippets.

View veridelisi's full-sized avatar
💭
Parayı Kim Yaratır?

veridelisi veridelisi

💭
Parayı Kim Yaratır?
View GitHub Profile
@veridelisi
veridelisi / Ranked Trading Volume (Volume*Price) of BtcTurk Pairs.py
Last active April 23, 2024 19:45
Ranked Trading Volume (Volume*Price) of BtcTurk Pairs(TRY).py
import requests
import matplotlib.pyplot as plt
import pandas as pd # For displaying the table
# Fetch Data
response = requests.get("https://api.btcturk.com/api/v2/ticker")
data = response.json()
# Parse Data for TRY pairs, keeping them unchanged
try_pairs_data = [
@veridelisi
veridelisi / Ranked Trading Volume (Volume*Price) of BtcTurk TRY Pairs.py
Created April 23, 2024 10:17
Ranked Trading Volume (Volume*Price) of BtcTurk TRY Pairs.py
import requests
import matplotlib.pyplot as plt
# Fetch Data
response = requests.get("https://api.btcturk.com/api/v2/ticker")
data = response.json()
# Gets snapshot information about the last trade (tick), best bid/ask and 24h volume.
# Parse Data for TRY pairs only, excluding USDT pairs
pairs_data = [
@veridelisi
veridelisi / VP
Created April 4, 2024 14:12
VP.py
import requests
import json
import time
import sqlite3
# Initialize and connect to the SQLite database
conn = sqlite3.connect('btcturk_volume_data.db')
c = conn.cursor()
# Create the table if it doesn't exist
@veridelisi
veridelisi / Volume and Price of ASRUSDT Pair.py
Created April 4, 2024 09:31
Volume and Price of ASRUSDT Pair.py
import requests
import json
from datetime import datetime, timedelta
# Calculate the start and end timestamps for the last two weeks
end_time = datetime.now()
start_time = end_time - timedelta(days=90)
# Convert to Unix timestamp in seconds
start_timestamp = int(start_time.timestamp())
@veridelisi
veridelisi / Volume and Price of BtcTurk BTCUSDT Pair (Log Scale).py
Created April 3, 2024 08:25
Volume and Price of BtcTurk BTCUSDT Pair (Log Scale).py
import requests
import json
from datetime import datetime, timedelta
# Calculate the start and end timestamps for the last two weeks
end_time = datetime.now()
start_time = end_time - timedelta(days=94)
# Convert to Unix timestamp in seconds
start_timestamp = int(start_time.timestamp())
@veridelisi
veridelisi / Ranked Trading Volume (Volume*Price) of BtcTurk USDT Pairs.py
Last active April 23, 2024 10:08
Ranked Trading Volume (Volume*Price) of BtcTurk USDT Pairs
import requests
import matplotlib.pyplot as plt
# Fetch Data
response = requests.get("https://api.btcturk.com/api/v2/ticker")
data = response.json()
#Gets snapshot information about the last trade (tick), best bid/ask and 24h volume.
# Parse Data for USDT pairs only, excluding USDTTRY
pairs_data = [
@veridelisi
veridelisi / Volume and Price of BtcTurk USDT Pairs (Log Scale).py
Last active April 3, 2024 07:07
Volume and Price of BtcTurk USDT Pairs (Log Scale)
import requests
import matplotlib.pyplot as plt
# Fetch Data
response = requests.get("https://api.btcturk.com/api/v2/ticker")
data = response.json()
#Gets snapshot information about the last trade (tick), best bid/ask and 24h volume.
# Parse Data for USDT pairs only, excluding USDTTRY
pairs_data = [
from typing import List
import hashlib
class Node:
def __init__(self, left, right, value: str, content) -> None:
self.left = left
self.right = right
self.value = value
self.content = content
import pandas as pd
# Set up the variables
spot_rates = {
1: 0.055,
2: 0.06,
3: 0.0625,
4: 0.065,
5: 0.07,
}
// SPDX-License-Identifier: BUSL-1.1
pragma solidity ^0.8.17;
contract BasicBankV2 {
mapping(address => uint256) public balances;
/// @notice deposit ether into the contract
/// @dev it should work properly when called multiple times
function addEther() external payable {