Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(binance) - minor fix #23659

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

fix(binance) - minor fix #23659

wants to merge 5 commits into from

Conversation

ttodua
Copy link
Member

@ttodua ttodua commented Sep 6, 2024

No description provided.

@@ -747,6 +746,7 @@ export default class binance extends Exchange {
'income/asyn/id': 5,
'pmExchangeInfo': 0.5, // Weight(IP): 5 => cost = 0.1 * 5 = 0.5
'pmAccountInfo': 0.5, // Weight(IP): 5 => cost = 0.1 * 5 = 0.5
'historicalTrades': 20,
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this endpoint in dapi, is private, not public:
https://dapi.binance.com/dapi/v1/historicalTrades

so, i've moved it from dapiPublic -> dapiPrivate

@@ -894,9 +894,6 @@ export default class binance extends Exchange {
'positionRisk': 1,
},
},
'fapiPublicV3': {
'get': {},
},
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fapiPublicv3 was empty, needed to be removed.

},
'delete': {
'userDataStream': 0.4,
},
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

userDataStream might need to be private: https://github.com/binance/binance-spot-api-docs/blob/master/rest-api.md#user-data-stream-endpoints
also the code suggests so, see this:

ccxt/ts/src/binance.ts

Lines 11186 to 11199 in bb2675e

const userDataStream = (path === 'userDataStream') || (path === 'listenKey');
if (userDataStream) {
if (this.apiKey) {
// v1 special case for userDataStream
headers = {
'X-MBX-APIKEY': this.apiKey,
'Content-Type': 'application/x-www-form-urlencoded',
};
if (method !== 'GET') {
body = this.urlencode (params);
}
} else {
throw new AuthenticationError (this.id + ' userDataStream endpoint requires `apiKey` credential');
}

all other market types (sapi, fapi etc..) also have userDataStream endpoint under private

@@ -854,6 +853,7 @@ export default class binance extends Exchange {
'feeBurn': 1,
'symbolConfig': 5,
'accountConfig': 5,
'historicalTrades': 20,
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants