ratować
curl -X GET -u "publicKey:secretKey" \
"https://api.hitbtc.com/api/2/margin/position"
Lovely Leopard
curl -X GET -u "publicKey:secretKey" \
"https://api.hitbtc.com/api/2/margin/position"
curl -X GET -u "publicKey:secretKey" \
"https://api.hitbtc.com/api/2/account/crypto/is-mine/1BvBMSEYstWetqTFn5Au4m4GFg7xJaNVN2"
import requests
session = requests.session()
session.auth = ("publicKey", "secretKey")
b = session.delete('https://api.hitbtc.com/api/2/margin/account').json()
print(b)
import requests
session = requests.session()
session.auth = ("publicKey", "secretKey")
b = session.get('https://api.hitbtc.com/api/2/margin/account/BTCUSD').json()
print(b)
import requests
session = requests.session()
session.auth = ("publicKey", "secretKey")
b = session.delete('https://api.hitbtc.com/api/2/margin/position').json()
print(b)
{
"status": "success",
"data": {
"name": "test",
"salary": "123",
"age": "23",
"id": 25
}
}
{
"symbol": "BTCUSD",
"leverage": "5.00",
"marginBalance": "50.0000000000000",
"marginBalanceOrders": "0",
"marginBalanceRequired": "0",
"createdAt": "2020-06-21T14:29:48.882Z",
"updatedAt": "2020-06-21T14:29:48.882Z"
}
curl -X PUT -u "publicKey:secretKey" \
"https://api.hitbtc.com/api/2/margin/order/d8574207d9e3b16a4a5511753eeef175" \
-d 'symbol=ETHBTC&side=sell&quantity=0.063&price=0.046016'
save(data,file="data.csv")
{
"error": {
"code": 500,
"message": "Internal Server Error",
"description": "account 7988921 already freeze or disabled"
}
}