⚝
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
/
self
/
root
/
home
/
erol
/
Edit File: a.py
import decimal import math import time from binance.client import Client from binance.um_futures import UMFutures import pymysql from requests.exceptions import ConnectTimeout from binance.exceptions import BinanceAPIException symbol="MKRUSDT" um_futures_client=UMFutures("77c0843d7b74d6fc4072e38ef5cf6eb6dfed9d03a3c035d0674399f8a86b851b", "1cc8969992bb97917a1751d3c8b3deac808b253407c38775c0c9f1f43dc5068f",base_url="https://testnet.binancefuture.com") resp = um_futures_client.account() long_posizyon = list(filter(lambda order: float(order['positionAmt']) != 0 and order["positionSide"] == "LONG" and order['symbol']==symbol, resp['positions'])) sort_posizyon = list(filter(lambda order: float(order['positionAmt']) != 0 and order["positionSide"] == "SHORT" and order['symbol']==symbol, resp['positions'])) long_posizyon=long_posizyon[0] if len(long_posizyon)>0 else long_posizyon sort_posizyon=sort_posizyon[0] if len(sort_posizyon)>0 else sort_posizyon #print(long_posizyon) print(sort_posizyon)
Simpan