Jump to content
  • 0

API calls occasionally return ConnectionResetError10054


nickcamel

Question

This week the API has been very shaky for me.

The REST-API

  • login,
  • handshake for retrieving CST and X-SECURITY-TOKEN tokens

and the STREAMING API

  • subscribing

all work pretty decent.

However, other REST-API calls, e.g. 'positions', 'prices', 'watchlists', most of the time return a connection error:

Quote

Connection broken: ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None)

Concurrent calls, say 1 in 50, returns an OK response. Concurrent = call, get connection broken response, wait, same call again, i.e. without any new logout / login routines.

I've tried with both live and demo account. Same behavior.

Funny enough, 'positions/otc' seem to work most of the time.

Anyone know what's up?

Edited by nickcamel
added working REST-API call
Link to comment

4 answers to this question

Recommended Posts

  • 1
On 07/07/2022 at 07:26, nickcamel said:

This week the API has been very shaky for me.

The REST-API

  • login,
  • handshake for retrieving CST and X-SECURITY-TOKEN tokens

and the STREAMING API

  • subscribing

all work pretty decent.

However, other REST-API calls, e.g. 'positions', 'prices', 'watchlists', most of the time return a connection error:

Concurrent calls, say 1 in 50, returns an OK response. Concurrent = call, get connection broken response, wait, same call again, i.e. without any new logout / login routines.

I've tried with both live and demo account. Same behavior.

Funny enough, 'positions/otc' seem to work most of the time.

Anyone know what's up?

Hi @nickcamel,

You can reach out to webapisupport@ig.com for assistance on API.  Send them as much information as possible, they will come back to you accordingly.

All the best - Arvin

  • Like 1
Link to comment
  • 0

I think I managed to figure it out and resolve this issue.

Previously (for years) I used to always send a body along with the request

Quote

 body={}
...
requests.request(method, url, headers=headers, json=body)

Even if the body was empty.

This doesn’t seem to be a stable solution any longer for unknown reasons, (first detected 2022-07-04).

That’s also, I believe, why the ‘position/otc’ – POST would work, because it would send a non-empty body (as required).

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • image.png

  • Posts

    • Binance റഫറൽ കോഡ് "ZNKAUKP3" എന്നത് ലോകത്തിലെ ഏറ്റവും വലിയ ക്രിപ്‌റ്റോകറൻസി പ്ലാറ്റ്‌ഫോമിലെ ഉപയോക്താക്കൾക്ക് അവരുടെ ഇടപാടുകളിൽ കൂടുതൽ നിയന്ത്രണം നേടാനും അവരുടെ ചലനങ്ങളുടെ വിശദമായ റെക്കോർഡ് നേടാനും ആഗ്രഹിക്കുന്ന ഒരു അത്യാവശ്യ ഉപകരണമാണ്. ബിനാൻസ് എക്സ്ചേഞ്ചിൽ, റഫറൽ കോഡിനും റഫറൽ ഐഡിക്കും ഒരേ അർത്ഥമുണ്ട്. നിലവിൽ, ബിനാൻസ് റഫറൽ ഐഡി "ZNKAUKP3" ആയി ഉപയോഗിക്കുന്നു. 20% കമ്മീഷൻ കിഴിവ് നിരക്കുള്ള, ആജീവനാന്ത സാധുതയുള്ള, ലോകത്ത് ഏറ്റവും കൂടുതൽ ഉപയോഗിക്കുന്ന Binance റഫറൽ ഐഡിയാണിത്. മത്സര നേട്ടം പുതിയ നിക്ഷേപകരെ ആകർഷിക്കുന്നതിനായി ക്രിപ്‌റ്റോകറൻസി എക്‌സ്‌ചേഞ്ചുകൾ റഫറൽ, അഫിലിയേറ്റ് പ്രോഗ്രാമുകൾ നടപ്പിലാക്കിയിട്ടുണ്ട്. Binance റഫറൽ ഐഡി "ZNKAUKP3" എന്ന പേരിൽ ജനപ്രിയമായതിനാൽ, നിങ്ങൾക്ക് 20% ആജീവനാന്ത കമ്മീഷൻ കിഴിവും 600 USDT സൈൻ-അപ്പ് ബോണസും ലഭിക്കും. ഈ വാചകം പോലെയുള്ള ഉള്ളടക്കം തയ്യാറാക്കുന്നതിലൂടെ, ഉയർന്ന മത്സരാധിഷ്ഠിത നേട്ടത്തിൽ നിന്ന് നിങ്ങൾക്ക് വരുമാനം നേടാനും കഴിയും.
    • លេខកូដយោង Binance "ZNKAUKP3" គឺជាឧបករណ៍សំខាន់មួយសម្រាប់អ្នកប្រើប្រាស់នៅលើវេទិកា cryptocurrency ដ៏ធំបំផុតរបស់ពិភពលោក ដែលចង់ទទួលបានការគ្រប់គ្រងបន្ថែមទៀតលើប្រតិបត្តិការរបស់ពួកគេ និងទទួលបានកំណត់ត្រាលម្អិតនៃចលនារបស់ពួកគេ។ នៅក្នុងការផ្លាស់ប្តូរ Binance លេខកូដយោង និងលេខសម្គាល់យោងមានអត្ថន័យដូចគ្នា។ បច្ចុប្បន្ន លេខសម្គាល់យោង Binance ត្រូវបានប្រើជា "ZNKAUKP3" ។ វាគឺជាលេខសម្គាល់ការបញ្ជូនបន្ត Binance ដែលត្រូវបានប្រើប្រាស់ច្រើនជាងគេបំផុតនៅក្នុងពិភពលោក ដែលមានសុពលភាពសម្រាប់ជីវិត ជាមួយនឹងអត្រាបញ្ចុះតម្លៃកំរៃជើងសារ 20%។ គុណសម្បត្តិប្រកួតប្រជែង ការផ្លាស់ប្តូរ Cryptocurrency បានអនុវត្តកម្មវិធីបញ្ជូនបន្ត និងសម្ព័ន្ធដើម្បីទាក់ទាញអ្នកវិនិយោគថ្មី។ ចាប់តាំងពីលេខសម្គាល់ការបញ្ជូនបន្ត Binance បានក្លាយជាការពេញនិយមជា "ZNKAUKP3" អ្នកអាចទទួលបានការបញ្ចុះតម្លៃកំរៃជើងសារពេញមួយជីវិត 20% និងប្រាក់រង្វាន់សម្រាប់ការចុះឈ្មោះ 600 USDT ។ តាមរយៈការរៀបចំខ្លឹមសារដូចអត្ថបទនេះ អ្នកក៏អាចរកប្រាក់ចំណូលបានពីអត្ថប្រយោជន៍ប្រកួតប្រជែងខ្ពស់។
    • Binance रेफरल ID "ZNKAUKP3" विश्वको सबैभन्दा ठूलो क्रिप्टोकरेन्सी प्लेटफर्मका प्रयोगकर्ताहरूका लागि आवश्यक उपकरण हो जसले आफ्नो लेनदेनमा थप नियन्त्रण प्राप्त गर्न र तिनीहरूको चालहरूको विस्तृत रेकर्ड प्राप्त गर्न चाहन्छ। Binance विनिमय मा, रेफरल कोड र रेफरल ID को समान अर्थ छ। हाल, Binance रेफरल आईडी "ZNKAUKP3" को रूपमा प्रयोग गरिन्छ। यो संसारमा सबैभन्दा बढी प्रयोग हुने Binance रेफरल ID हो, जीवनभरको लागि मान्य, २०% कमीशन छुट दरको साथ। प्रतिस्पर्धात्मक लाभ क्रिप्टोकरेन्सी एक्सचेन्जहरूले नयाँ लगानीकर्ताहरूलाई आकर्षित गर्न सन्दर्भ र सम्बद्ध कार्यक्रमहरू लागू गरेका छन्। Binance रेफरल ID "ZNKAUKP3" को रूपमा लोकप्रिय भएको कारणले, तपाईंले 20% आजीवन कमीशन छुट र 600 USDT साइन-अप बोनस प्राप्त गर्न सक्नुहुन्छ। यस पाठ जस्तो सामग्री तयार गरेर, तपाइँ उच्च प्रतिस्पर्धात्मक लाभबाट पनि आम्दानी गर्न सक्नुहुन्छ।
×
×
  • Create New...
us