Open kojoakyer opened 1 year ago
are you providing the necessary headers for consuming the binance API? What is the error you're getting?
@kojoakyer possibly put a screenshot of the error here
Yes They require timestamp and signature inside the url.I’m using an npm library called crypto to get the signature. The error I’m getting is crypto.createHma is not a function .That’s the only example I have seen on how to get the signature On 26 Jan 2023, at 6:39 PM, Alfred Doh-Nani @.***> wrote: are you providing the necessary headers for consuming the binance API? What is the error you're getting?
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>
On 26 Jan 2023, at 6:41 PM, Alfred Doh-Nani @.***> wrote: @kojoakyer possibly put a screenshot of the error here
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>
@kojoakyer you're using the crypto
package on the frontend or backend?
I’m using it on the frontendSent from my iPhoneOn 27 Jan 2023, at 9:53 AM, Alfred Doh-Nani @.***> wrote: @kojoakyer you're using the crypto package on the frontend or backend?
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>
cypto
is a nodeJS package, it can only be used at the backend
Okay So I should make the api call from the backend and consume it from the frontendOn 27 Jan 2023, at 9:56 AM, Alfred Doh-Nani @.***> wrote: cypto is a nodeJS package, it can only be used at the backend
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>
Inside the rateCalculator componenet, im trying to use binance p2p api to do the conversion. i have an issue getting data from the binance api .