Giter Club home page Giter Club logo

Comments (6)

krijnsent avatar krijnsent commented on May 28, 2024 1

Hi @mtmy2 ,
I haven't seen this problem before, but can try to replicate it somewhere in the coming week. Cheers

from crypto_vba.

krijnsent avatar krijnsent commented on May 28, 2024

Hi @mtmy2
could you do a debug.print of your postdata string?

Like so:
postdata = "symbol=" & sym... etc...
debug.print postdata

My guess is that your value has a comma in it, so you'd need to replace that by a dot.

from crypto_vba.

mtmy2 avatar mtmy2 commented on May 28, 2024

Debug gave: symbol=BTCUSD&quantity=0,01&type=market&side=buy

from crypto_vba.

mtmy2 avatar mtmy2 commented on May 28, 2024

this error with qty=0,01: {"error":{"code":2010,"message":"Quantity not a valid number","description":"Quantity not a valid number or not set"}}
And this error with qty=1: {"error":{"code":20001,"message":"Insufficient funds","description":"Check that the funds are sufficient, given commissions"}}

from crypto_vba.

krijnsent avatar krijnsent commented on May 28, 2024

Hi @mtmy2 , do you see the "qty=0,01" -> that is a comma, and HitBTC only accepts a . (dot) as a decimal symbol
So you could add a line after that postdata line to do that:
postdata = Replace(postdata , ",", ".", 1)

That should solve the first error. For the second error, you need enough funds in your account.

from crypto_vba.

mtmy2 avatar mtmy2 commented on May 28, 2024

It's work! Thak you so much!

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.