kojoakyer / cediconvert

0 stars 0 forks source link

Challenges connecting to binance api #1

Open kojoakyer opened 1 year ago

kojoakyer commented 1 year ago

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 .

alfreddohnani commented 1 year ago

are you providing the necessary headers for consuming the binance API? What is the error you're getting?

alfreddohnani commented 1 year ago

@kojoakyer possibly put a screenshot of the error here

kojoakyer commented 1 year ago

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: @.***>

kojoakyer commented 1 year ago

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: @.***>

alfreddohnani commented 1 year ago

@kojoakyer you're using the crypto package on the frontend or backend?

kojoakyer commented 1 year ago

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: @.***>

alfreddohnani commented 1 year ago

cypto is a nodeJS package, it can only be used at the backend

kojoakyer commented 1 year ago

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: @.***>