Anastazjajestem
Anastazjajestem
#tenis #codziennarybakina
- bolsonn
- JacoobCK
Ta treść została oznaczona jako materiał kontrowersyjny lub dla dorosłych.
Error: 401, {"code":"400005","msg":"Invalid KC-API-SIGN"}
import requests
import time
import base64
import hmac
import hashlib
# Replace with your Kucoin API key and secret
api_key = 'X'
api_secret = 'X'
api_passphrase = 'X'
url = '[https://api.kucoin.com/api/v1/accounts'](https://api.kucoin.com/api/v1/accounts')
now = int(time.time() * 1000)
str_to_sign = str(now) + 'GET' + '/api/v1/accounts'
signature = base64.b64encode(
hmac.new(api_secret.encode('utf-8'), str_to_sign.encode('utf-8'), hashlib.sha256).digest()
)
headers = {
'KC-API-SIGN': signature,
'KC-API-TIMESTAMP': str(now),
'KC-API-KEY': api_key,
'KC-API-PASSPHRASE': api_passphrase,
import requests
import time
import base64
import hmac
import hashlib
import random
import json
api_key = 'X'
api_secret = 'X'
api_passphrase = 'X'
withdrawals = [
{"currency": "MATIC", "address": "adres", "network": "POLYGON", "amount": "3"},
]
url = '[https://api.kucoin.com/api/v1/withdrawals'](https://api.kucoin.com/api/v1/withdrawals')
def initiate_withdrawal(withdrawal):
data = {
'currency': withdrawal['currency'],
'address': withdrawal['address'],
'network': withdrawal['network'],
'amount': withdrawal['amount']
}
json_data = json.dumps(data, separators=(',', ':'))
now
Wykop.pl