binance / binance-api-postman

Postman collection for Binance Public API, including spot, margin, futures, etc.
MIT License
1.32k stars 883 forks source link

-2015 when use Account information in Binance perpetual future API #77

Closed vvsuperman closed 3 years ago

vvsuperman commented 3 years ago

I get error as

{
    "code": -2015,
    "msg": "Invalid API-key, IP, or permissions for action, request ip: 101.80.21.205"
}

in collections Binance perpetual future API -> Account -> Account information which send request as

curl --location --request GET 'https://testnet.binancefuture.com/fapi/v1/account?timestamp=1613652317700&signature=13d5684fbf8a50f52f87c72426a2e7925841912688456ce48b0d71f809cdfa6c' \
--header 'Content-Type: application/json' \
--header 'X-MBX-APIKEY: a2NQttwdUgdgfqzgXobwE4JUR9onDWK4basorZERDeZiDF2FZErlmJ3N3m7vM5q5'

but all the requests in the future API -> Market send success. because I use the same binance-api-key and binance-api-secret for spot which I get from https://testnet.binance.vision/ so I wonder the future api have different secret key? or are there any other problems?

2pd commented 3 years ago

yes, futures has different testnet than spot testnet. please find the details from this topic.

https://dev.binance.vision/t/binance-testnet-environments/99

vvsuperman commented 3 years ago

the url in your article is broken

截屏2021-02-19 下午8 14 47
vvsuperman commented 3 years ago

solved, can not access direct from mainland