# Binance HTTP signature hashing

**URL:** <https://community.make.com/t/binance-http-signature-hashing/23478>\
**Category:** Questions\
**Tags:** api\
**Created:** [January 5, 2024, 10:13pm UTC](https://community.make.com/t/binance-http-signature-hashing/23478 "2024-01-05T22:13:55Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![illipasi](https://avatars.discourse-cdn.com/v4/letter/i/ea5d25/32.png) [@illipasi](https://community.make.com/u/illipasi)\
**Post date:** [January 5, 2024, 10:13pm UTC](https://community.make.com/t/binance-http-signature-hashing/23478/1 "2024-01-05T22:13:55Z")

</div>

Hey guys!

I tried to setup HTTP POST for Binance but I keep getting error: code -1022 with message: Signature for this request is not valid.

Signature is in Query String and its last. API and secret keys are valid.

GETting Ping and Time works but those don’t require signature i think.

Any suggestions?

Cheers!

EDIT: What I have found out now that I need to have hmac sha256 hash in signature but I didn’t quite figure out it yet how to do it in [Make.com](http://make.com/) like Binance needs it.

Documentation is sometimes difficult for me to understand, I need clear examples.

---

<div class="post-metadata">

**Author:** ![sachin.shrivastava](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/sachin.shrivastava/32/25887_2.png) [@sachin.shrivastava](https://community.make.com/u/sachin.shrivastava)\
**Post date:** [January 6, 2024, 10:41am UTC](https://community.make.com/t/binance-http-signature-hashing/23478/3 "2024-01-06T10:41:05Z")

</div>

Hey @illipasi  
Welcome to Make Community.

You can change your data in **(sha256)** hash in make by using **Text Function**.

 ![Screenshot (26)](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/8/9/89db3da86cd123e46f25ff84e0e6fc6bb31af183.png)

Thanks  
Sachin Shrivastava  
[growwstacks.com](https://growwstacks.com)

---

<div class="post-metadata">

**Author:** ![illipasi](https://avatars.discourse-cdn.com/v4/letter/i/ea5d25/32.png) [@illipasi](https://community.make.com/u/illipasi)\
**Post date:** [January 6, 2024, 11:04am UTC](https://community.make.com/t/binance-http-signature-hashing/23478/4 "2024-01-06T11:04:36Z")

</div>

Here is my current test setup. I know I am doing something wrong but what? 😁

 ![binance sha256 problem](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/5/d/5dbd1253d8bab2bfa88d256b377b19625af338e2.png)

---

<div class="post-metadata">

**Author:** ![sachin.shrivastava](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/sachin.shrivastava/32/25887_2.png) [@sachin.shrivastava](https://community.make.com/u/sachin.shrivastava)\
**Post date:** [January 6, 2024, 11:59am UTC](https://community.make.com/t/binance-http-signature-hashing/23478/5 "2024-01-06T11:59:48Z")

</div>

> Try this.

![Screenshot (28)](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/c/1/c15af6496e9295163bbe91f966cd4424c3a3fe34.png)

> `Replace the data that required`

---

<div class="post-metadata">

**Author:** ![illipasi](https://avatars.discourse-cdn.com/v4/letter/i/ea5d25/32.png) [@illipasi](https://community.make.com/u/illipasi)\
**Post date:** [January 6, 2024, 3:16pm UTC](https://community.make.com/t/binance-http-signature-hashing/23478/6 "2024-01-06T15:16:30Z")

</div>

It seems that symbol etc need to be at API URL field. So your suggestion does unfortunately not work.

![mandatory symbol missing](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/1/7/17984515a3a84aa994540d70afbc393d402aa1f3.png)

---

<div class="post-metadata">

**Author:** ![illipasi](https://avatars.discourse-cdn.com/v4/letter/i/ea5d25/32.png) [@illipasi](https://community.make.com/u/illipasi)\
**Post date:** [January 7, 2024, 2:08pm UTC](https://community.make.com/t/binance-http-signature-hashing/23478/7 "2024-01-07T14:08:43Z")

</div>

Got it working. Here is working signature settings and last photo have settings how to get servertime.

Copy paste signature (update your key and modules): {{sha256(“timestamp=” + (18.data.serverTime + 1000); “hex”; 25.`TESTNET SECRET KEY`)}}

I hope this helps someone.

Cheers!

EDIT: This was good tool for confirm SHA256 hashing: [Free Online HMAC Generator / Checker Tool (MD5, SHA-256, SHA-512) - FreeFormatter.com](https://www.freeformatter.com/hmac-generator.html#before-output)

 ![Working signature](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/d/9/d9d5e4b67e61ff5082ff2142e66f1e7e4a41f94f.png)

 ![binance time](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/a/e/ae1eaaf897312959960583d1d4f49cb3d1b6c12c.png)

---

<div class="post-metadata">

**Author:** ![vendy](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/vendy/32/12635_2.png) [@vendy](https://community.make.com/u/vendy)\
**Post date:** [January 8, 2024, 6:48am UTC](https://community.make.com/t/binance-http-signature-hashing/23478/8 "2024-01-08T06:48:06Z")

</div>

Hello there @illipasi 👋

Excited to see that you got the ball rolling with the assistance of @sachin.shrivastava ⚽

Also thanks a lot for coming back here to us and sharing the final solution. We greatly appreciate you keeping us in mind. This way we keep our community organized and clean.

Keep up the great work! :party_blob:

---

<div class="post-metadata">

**Author:** ![Make\_Bot](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/make_bot/32/14661_2.png) [@Make\_Bot](https://community.make.com/u/Make_Bot)\
**Post date:** [January 21, 2024, 2:12pm UTC](https://community.make.com/t/binance-http-signature-hashing/23478/9 "2024-01-21T14:12:53Z")

</div>


