Code Monkey home page Code Monkey logo

Comments (6)

rexii2300 avatar rexii2300 commented on May 28, 2024

I have the same error when I run this after midnight. on GMT+11 here, I also had to use TimeCorrection = -39600 to align timestamp.

from crypto_vba.

krijnsent avatar krijnsent commented on May 28, 2024

Thanks for the feedback, could any of you email me/post here what Url is used?
In the Binance module there is this line:
Url = TradeApiSite & Method & "?" & postdata & "&signature=" & APIsign
If you could add and post the result here:
Debug.print Url
Thanks in advance!

from crypto_vba.

rexii2300 avatar rexii2300 commented on May 28, 2024

i get

https://api.binance.com/api/v3/account?&timestamp=1515590143.80&signature=xxxxxxxxxxxxxxxxxxxx

ran about 2min ago. i've hidden the signature, not sure if it's sensitive.

thanks for the awesome vba, saving me so much time!

from crypto_vba.

krijnsent avatar krijnsent commented on May 28, 2024

Okay, I see the problem: there is a dot (.) in the timestamp (there was a space in the previous error). Will try to push an update out in a little - EDIT: pushed an update to get rid of the dot.
The signature is not sensitive: it's a hash, so there is no way for anyone to see what went into it.

from crypto_vba.

balin77 avatar balin77 commented on May 28, 2024

Hey krijnsent,
your connections to all the exchanges are great. I have tested the Bittrex and Binance connections and both are working fine now. I had the same problem with the dots and solved it like this:

`NonceUnique = GetTimeBinance

Function GetTimeBinance() As Double

Dim JsonResponse As String
Dim Json As Object
'-> normally JSON is returned like {}, a dictionary in VBA,
'-> some functions return JSON is returned like [], a collection in VBA
'-> so to catch both, Dim Json as Object
Dim JsonRes As Dictionary
Dim apikey As String
Dim secretkey As String

'PublicBinance time
JsonResponse = PublicBinance("v1/", "time")
Set Json = JsonConverter.ParseJson(JsonResponse)
ResArr = JsonToArray(Json)
tbl = ArrayTable(ResArr)
GetTimeBinance = tbl(1, 2)

End Function`

I just ask Binance first for their public servertime and send it back to them again.

from crypto_vba.

krijnsent avatar krijnsent commented on May 28, 2024

Good one, I thought of it before, but never got to include it. Might include it in my project as an option for Binance!

from crypto_vba.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.