-
-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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
base: master
Are you sure you want to change the base?
fix(binance) - minor fix #23659
Conversation
@@ -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, |
There was a problem hiding this comment.
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': {}, | |||
}, |
There was a problem hiding this comment.
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, | ||
}, |
There was a problem hiding this comment.
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:
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, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same for fapi: https://fapi.binance.com/fapi/v1/historicalTrades
No description provided.