Javascript, Binance api post order request (Need help with debugging)

I've wrote a piece of code to post an order to Binance api. I'm getting 404 error. Binance docs state:

(HTTP 4XX return codes are used for for malformed requests; the issue is on the sender's side.)

I have derived (probably incorrectly) from the official node.js version ([url removed, login to view]) .But I do not want to work with node.js.

I can't figure out what i'm doing wrong. Relatively new to JS.

This project is simply helping me by getting this script to work.

Official documentation: [url removed, login to view]

All other resources used are zipped and attached.

You will need to register in binance to get your own api key and api secret.

Please bid only if you can do this. There is not much more information I can give you after you've bid.

Running from local machine (directly from browser, no server or localhost), just FYI.

Thank you in advance.

This is my current situation:

<script src="/assets/js/[url removed, login to view]"></script>

<script src="/assets/js/[url removed, login to view]"></script>

<script type="text/javascript">

var symbol = 'BTCUSDT';

var bs = 'BUY';

var amount = 1;

var api_key = '***********';

var api_secret = '***********';

var base = '[url removed, login to view]';

var thequery = 'symbol='+symbol+'&side='+bs+'&type=MARKET&timeInForce=GTC&quantity='+amount+'&recvWindow=60000&timestamp='+[url removed, login to view]();

var hash = [url removed, login to view](thequery, api_secret);

//var hashInBase64 = [url removed, login to view](hash);


url: base+'?'+thequery+'&signature='+hash,

type: 'POST',

dataType: 'jsonp', //CORS FIX

beforeSend: function(xhrObj){

[url removed, login to view]("X-MBX-APIKEY",api_key);

[url removed, login to view]("User-Agent",'Mozilla/4.0 (compatible; Node Binance API)');

[url removed, login to view]("Content-type",'application/x-www-form-urlencoded');


success: function (result) {

[url removed, login to view](result);


error: function (error) {

[url removed, login to view](error);




Kemahiran: Kriptografi, Javascript

Lihat lagi: Need help in writing some java code, need help to repair javascript freelancer, i need help with someone writing my book for me where do i go, need help debugging, need help fixing javascript, need help paypal adaptive payment api, need help dutch german post classified 2009, need help implementing api resellerclub, post app request facebook javascript, using fasthost api need help, converting http site css javascript drupal need help, need help post affiliate pro, need help text website, open source projects need help, freelance need help wsdl file, need help adding google adsense site, mp3 files need help transcribing

Tentang Majikan:
( 15 ulasan ) Sofia, Bulgaria

ID Projek: #16081540

6 pekerja bebas membida secara purata $192 untuk pekerjaan ini


Hi there. Just checked your description carefully. I have good skills in cryptocurrnecy api integration. I am good at bitgo, bitpay , kraken and [login to view URL] api. So I can do your job successuflly. Relevant Skills and Exp Lagi

$222 USD dalam 3 hari
(20 Ulasan)

Hello i can do this i m expert in jquery. Relevant Skills and Experience I have good knowledge of Mobile Jquery,WordPress,Codeigniter, php,Ajax,HTML5,CSS3,mysql,PDO SQl,Bootstrap, All Browser and Mobile Responsive Des Lagi

$250 USD dalam 3 hari
(12 Ulasan)

Greeting, I have understood your Javascript task and can do it with your 100% satisfaction. Please ping me for more discussion. Relevant Skills and Experience I have more than 5 years of experience in Cryptography, Lagi

$250 USD dalam 3 hari
(9 Ulasan)

I understand your requirements regarding Web. I am professionals BTech IT engineer. I am providing the every kind of service related to Web sites and server management. I have 5 years experience i Relevant Skills and Lagi

$155 USD dalam sehari
(10 Ulasan)

ping me back im interested so we can discuss further

$222 USD dalam 5 hari
(0 Ulasan)

Hi I'm   RICH P. I've reviewed your complete job description. I have more than 12 years of experience in this field. if you will respond me then I will be able to explain my skills. Relevant Skills and Experience Lagi

$50 USD dalam 3 hari
(0 Ulasan)