“Schlüssel” Code-Antworten

Schlüssel

import requests
session = requests.session()
session.auth = ("publicKey", "secretKey")
b = session.get('https://api.hitbtc.com/api/2/order/c1837634ef81472a9cd13c81e7b91401').json()
print(b)
Lovely Leopard

Schlüssel

curl -X GET -u "publicKey:secretKey" \
    "https://api.hitbtc.com/api/2/trading/fee/ETHBTC"    
Lovely Leopard

Schlüssel

import requests
session = requests.session()
session.auth = ("publicKey", "secretKey")

Lovely Leopard

Schlüssel

curl -X GET -u "publicKey:secretKey" \
     "https://api.hitbtc.com/api/2/trading/balance"
Lovely Leopard

Schlüssel

    [
      {
        "currency": "ETH",
        "available": "10.000000000",
        "reserved": "0.560000000"
      },
      {
        "currency": "BTC",
        "available": "0.010205869",
        "reserved": "0"
      }
    ]
Lovely Leopard

Schlüssel

curl -X GET -u "publicKey:secretKey" \
     "https://api.hitbtc.com/api/2/order/c1837634ef81472a9cd13c81e7b91401"
Lovely Leopard

Schlüssel

    import requests
    session = requests.session()
    session.auth = ("publicKey", "secretKey")
    orderData = {'symbol':'ethbtc', 'side': 'sell', 'quantity': '0.063', 'price': '0.046016' }
    r = session.post('https://api.hitbtc.com/api/2/order', data = orderData)        
    print(r.json())

Lovely Leopard

Schlüssel

b71c71a67e1177ad4e901695e1b4b9ee17ae16c6668d313eac2f96dbcda3f291
Lovely Leopard

Schlüssel

curl -u "publicKey:secretKey" https://api.hitbtc.com/api/2/trading/balance
Lovely Leopard

Schlüssel

const fetch = require('node-fetch');

const credentials = Buffer.from('publicKey' + ':' + 'secretKey').toString('base64');

fetch('https://api.hitbtc.com/api/2/trading/balance', {
    method: 'GET',
    headers: {
        'Authorization': 'Basic ' + credentials
    }
});

Lovely Leopard

Ähnliche Antworten wie “Schlüssel”

Fragen ähnlich wie “Schlüssel”

Durchsuchen Sie beliebte Code-Antworten nach Sprache

Durchsuchen Sie andere Codesprachen