⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.1
Server IP:
185.238.29.86
Server:
Linux server2 6.8.12-6-pve #1 SMP PREEMPT_DYNAMIC PMX 6.8.12-6 (2024-12-19T19:05Z) x86_64
Server Software:
nginx/1.18.0
PHP Version:
8.1.31
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
proc
/
thread-self
/
root
/
home
/
python
/
Edit File: test.py
import json from binance.client import Client import redis # Binance API anahtarlarınızı buraya girin api_key2 = "Qztg2g4lNYBfTplcuowK8zY0s9ReNpQMt5uRzUCyJDW7KPlTtT0OjAEVKaNL7Bj7" api_secret2 = "DYli9ewLKLgRFqTu8ur09hjQdrDMTtEabFFv6BaZFVpm2sXFPWmupTH7YqSe6DFR" api_key = "Qav4WckqXssVw9k5T5yZ0gxgY1w97B6UnW7pJSgqYZtt8gVS7cjF9ZSpepq4sOHN" api_secret = "TPLsmMTuDJwkfqFoYOo7dFy0hz0nNvQZNnrsDPjgg3nQe1Gz5rdQ6Mro78joHziM" # Binance API istemcisini oluşturun client = Client(api_key, api_secret) # Limit emri parametreleri symbol = "EDUUSDT" # İşlem yapılacak çift side = Client.SIDE_BUY # Alım emri quantity = 1.2 # Miktar price = 4.6000 # Fiyat s_price=3.0 # Limit emri oluştur def limit_al(client,symbol,positionSide,quantity,price): order = client.futures_create_order( symbol=symbol, side=Client.SIDE_BUY if positionSide=="LONG" else Client.SIDE_SELL, positionSide=positionSide, quantity=quantity, timeInForce = Client.TIME_IN_FORCE_GTC, type=Client.FUTURE_ORDER_TYPE_STOP, price = price, stopPrice = price ) def pozisyon_ac(client,symbol,quantity): order_long = client.futures_create_order( symbol=symbol, side="BUY", positionSide="LONG", quantity=quantity, type=Client.ORDER_TYPE_MARKET ) order_short = client.futures_create_order( symbol=symbol, side="SELL", positionSide="SHORT", quantity=quantity, type=Client.ORDER_TYPE_MARKET ) #limit_al(client,symbol,"LONG",quantity,price) #limit_al(client,symbol,"SHORT",quantity,s_price) order = client.futures_get_open_orders( symbol=symbol, ) print(json.dumps(len(order)))
Simpan