How to get all private endpoints to Binance Futures API

See original GitHub issue

Hi,

I need to know the entry price of my position.

I have this endpoint await binance.privateGetAccount ( ) It shows symbol, initialMargin, maintMargin, unrealizedProfit, initialMargin, positionInitialMargin, openOrderInitialMargin but no Entry Price of the position…

Where can I find all private endpoints , and the exact endpoint that shows the EntryPrice of the position…

Thanks

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:16 (7 by maintainers)

github_iconTop GitHub Comments

9reactions
kroitorcommented, Dec 6, 2019

@Gennttii yes, you’re right fapiPrivateGetPositionRisk(). The error you get means that you have to do one of the following:

  1. either create a futures trading account with Binance website if you haven’t created it yet
  2. or create a new api key, because futures will be disabled by Binance for all api keys that were created before the futures account
3reactions
kroitorcommented, Dec 6, 2019

@Gennttii the config should be a bit different in this case:

const binance  = new ccxt.binance ({ 
    options: { defaultType: 'future' }, // ←- this was wrong, should be defaultType
    apiKey: apiKeys[2], 
    secret: apiSecret[2],
    'timeout': 30000, 
    'enableRateLimit': true, 
    'urls': {
        'api': {
            'fapiPublic': 'https://testnet.binancefuture.com/fapi/v1', // ←------  fapi prefix here
            'fapiPrivate': 'https://testnet.binancefuture.com/fapi/v1', // ←------  fapi prefix here
        }
    } 
});

Let me know if that works for you.

UPD. Edited for typos 😦

Read more comments on GitHub >

github_iconTop Results From Across the Web

Change Log – Binance API Documentation - GitHub Pages
New endpoint GET /fapi/v1/income/asyn to get Download Id For Futures Transaction ... If user is in multiAssetsMargin mode, all assets will be included...
Read more >
Binance Python API – A Step-by-Step Guide - Algo Trading 101
After logging in to your Binance account, click on the profile icon on the top right-hand side of the screen. From there, select...
Read more >
Binance APIs
We offer access to Spot, Margin, Futures and Options API trading for over 300 Digital and Fiat ... Manage and grow your digital...
Read more >
API Binance Futures - eSeGeCe
Futures Contracts. Binance API has 2 types of methods: public and private. Public methods can be accessed without authentication, example: get ticker prices....
Read more >
Getting all filled orders from the Binance API - Stack Overflow
It's not currently possible (still, as of June 2021). Many developers are complaining about the lack of such a commonly-used endpoint.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found