Bittrex API #400 "Bad Request" WebRequest problem

Job finished

Execution time 5 hours
Feedback from customer
Good and fast programmer, quickly responds to messages, stays on point.
Feedback from employee
Great customer, very friendly and kindly.

Specification

I have been using bittrex bot for over a year and few days ago it started to report BAD REQUEST (400) error. (my code did not change, something changed in Bittrex)

this is my mql code:

int nonce = TimeGMT();
string uri = "https://bittrex.com/api/v1.1/market/getopenorders?apikey="+api_key+"&nonce="+nonce; 
StringToCharArray(uri, uri_char, 0, WHOLE_ARRAY, CP_UTF8); 
string output = CryptCreateSHA512Hash(uri,api_secret); 
ArrayResize(uri_char, ArraySize(uri_char)-1);
string headers = "apisign:"+output; 
int res=WebRequest("POST",uri, headers,private_api_timeout,uri_char, result_char, result_headers);
result = CharArrayToString(result_char,0,WHOLE_ARRAY);
if(res!=200)
{
   Print2("Authorization error #"+(string)res+", LastError="+(string)GetLastError());
   Print2("result = "+result);
   Print2("ERROR: Positions NOT LOADED from all pairs!");
} else {
...
}

reports:

Authorization error #400, LastError=0
result2 = Bad Request

php example, that works:

<?php

$apikey='xxx';
$apisecret='xxx'; 
$nonce=time(); 
$uri='https://bittrex.com/api/v1.1/market/getopenorders?apikey='.$apikey.'&nonce='.$nonce; 
$sign=hash_hmac('sha512',$uri,$apisecret); 
$ch = curl_init($uri); 
curl_setopt($ch, CURLOPT_HTTPHEADER, array('apisign:'.$sign)); 
$execResult = curl_exec($ch); 
$obj = json_decode($execResult);

if (curl_error($ch)) {
    $error_msg = curl_error($ch);
    echo 'error='.$error_msg;
} else {
    echo 'execResult='.$execResult;
}

?>

returns:

{"success":true,"message":"","result":[]}execResult=1


When I wrote their customer support, they replied:

Hi,

The the V1.1 API has been changed to no longer accept request bodies. You must use the API as documented with a query string.

https://support.bittrex.com/hc/en-us/articles/115003723911-Developer-s-Guide-API

Best Regards,

But I still can't catch what am I doing wrong in my code. Another response from service desk, after me implying that their method doesn't work for me:

HI,

Our developers are working to resolve this issue. Please see the information below. 

There is a workaround to use GetOrdersEx which does not require a POST.

## API POST Account/GetOrders

* Method : POST
* URL : https://bittrex.com/api/v1.1/Account/GetOrders?apikey=xxx&nonce=1234
* HEADER :
  * apisign : signature with hmac(sah512) fro above URL
* BODY format :
  * {"orders":["xxxxxxxx-2f68-405b-bfd3-fb19b362feea","xxxxxxxx-3583-48e5-951f-29b3ed04b65f"]}
* LIMIT : orders count <= 1000

I need someone to make my code great again and make it work with Bittrex API, as it used to.

Responded

1
Developer 1
Rating
(5)
Projects
5
20%
Arbitration
2
0% / 100%
Overdue
1
20%
Free
2
Developer 2
Rating
(69)
Projects
93
34%
Arbitration
10
40% / 30%
Overdue
5
5%
Free
Similar orders
1. Entry Rules Buy Entry : ADX(14) > 25 +DI > -DI EMA 21 crosses above EMA 50 Validated on the close of the H1 candle . Sell Entry : ADX(14) > 25 -DI > +DI EMA 21 crosses below EMA 50 Validated on the close of the H1 candle . 2. Exit Rules Take Profit (TP) : ATR-based TP = Current ATR(14) × 3.0 Stop Loss (SL) : ATR-based SL = Current ATR(14) × 1.5 Trailing Stop : Activated when profit ≥ ATR(14) × 1.0 . Trailing
📜 HostGhost EA Final Job Invite – For MQL5.com 📋 Project Title: Finalize & Polish HostGhost Dynamic Trader EA (80% Completed) 🌟 Project Description: Hello Developers, I am seeking an experienced and detail-oriented MQL5 programmer to finalize and polish a nearly completed EA called HostGhost . 80% of the EA's architecture is already built — structured, modular, well-commented, and elegantly laid out. Your role
i need an expert to converting trading view script called Renko chart into meta trader5 EA automated robot, i need an expert that can get it done in 5 days here is the link to the code /
Hello, I need an expert coder who can help me convert my tradingview pine script to mt5 EA expert advisor, This is the pine script https://ctxt.io/2/AAB4SyWXFQ&nbsp;Also I need for EA to enter trades exactly like this strategy on TradingView, i attach, please i need someone wo can do the work not time waster, Live market order should be placed on green and red indicator chart
Fast 1 30 - 150 USD
Job Title: MT5 Expert Advisor for ICT Strategy with Fair Value Gap and Risk Management Job Description: I’m looking for a skilled MQL5 developer to create an MT5 Expert Advisor (EA) based on an ICT-style strategy that trades XAUUSD using multi-timeframe market structure and Fair Value Gap detection. Key features: 4H market direction using BOS/CHOCH 2H/1H detection of FVGs (gap between candle 1’s high and candle 3’s
The ea should include indicators and should be able to spot entries on a 1 minute /15 minutes time frame, it has to scalp and automatically add take profit and stop loss the bot must trade small accounts from 12USD
Hello, I want to create an MT4 indicator identical to the one shown in the attached image. What I need: – Red arrows = sell signals at reversal zones – Green arrows = buy signals at reversal zones – Arrows appearing at candle closes for confirmation – It should work best on Forex and cryptocurrency pairs on the M1 timeframe. – A high win rate (90% or more). – There should be no repainting or other fraudulent
I am looking for an experienced MQL4 developer to create a rebate farming Expert Advisor (EA) designed to consistently generate a minimum of 2 lots per day on a $500 account with low drawdown and safe logic . The primary goal is volume generation , not profitability — the EA should be optimized to maximize trade count or lot turnover for rebate/cashback purposes, while maintaining account safety. 🧠 Requirements
- Develop and refine high-performance Forex indicators using advanced technical analysis and programming skills - Collaborate with our trading team to identify market trends and create strategies - Backtest and optimize indicators to ensure exceptional performance - Stay up-to-date with market developments and adapt indicators accordingly - Strong programming skills (e.g., MQL, Python, C++) - Experience with Forex
Looking for a professional to convert my TradingView Pine Script to Quantower with complete accuracy and a clean, well-structured codebase. I need an expert in strategy and indicator conversions who can ensure the logic, visuals, and performance remain fully intact throughout the transition

Project information

Budget
30 - 60 USD
VAT (23%): 6.9 - 13.8 USD
Total: 36.9 - 73.8 USD
For the developer
27 - 54 USD
Deadline
from 1 to 2 day(s)