Lu-Yi-Hsun / iqoptionapi

IQ Option API
373 stars 289 forks source link

Failed to buy into real account using BRL #73

Open MateusMendesSantana opened 5 years ago

MateusMendesSantana commented 5 years ago

When trying to make transactions in real account using the money of my country(BRL), the following error occurs:

check buy_successful time late 60sec

. This is just a suspicion, in the training account the operations happen normally. I think of creating another account with dollar to have confirmation of my suspicion

import random import time import json from iqoptionapi.stable_api import IQ_Option from datetime import datetime print("login...") I_want_money = IQ_Option("-----------", "-----------") I_want_money.change_balance("REAL") ACTIVES="EURUSD" ACTION="call" expirations_mode=1 force_buy= False cost=1 optionID = 0 print("") print("Buying option...") print("Cost: ${}".format(cost)) optionID = I_want_money.buy(cost,ACTIVES,ACTION,expirations_mode,force_buy) print(ACTIVES+" - History") print("--------------------------------") print("Option ID: {}".format(optionID)) time.sleep(0) cost=cost+0.01

MateusMendesSantana commented 5 years ago

my suspicions were confirmed, the api of the mistake in the purchase when operating a currency other than dollar, my solution was to create another account using dollar

Lu-Yi-Hsun commented 5 years ago

@MateusMendesSantana thank you find this yes mistake, i will write to the document

This api only support US Dollar ,because i only can test on US Dollar by my account

warley-oliveira commented 5 years ago

This information is invalid. I can usually buy into real account using BRL. I believe that the account could have some restriction or have won ban

joaochagas commented 5 years ago

Esta informação é inválida. Normalmente, posso comprar em uma conta real usando BRL. Acredito que a conta possa ter alguma restrição ou ter sido banida

Você consegue comprar normalmente em BRL ? posso conversar contigo ? skype @ejoaochagas. Obrigado

pythonthailand commented 5 years ago

Sorry i'want to make copy trade. can you me for sample.

JafferWilson commented 5 years ago

Sorry i'want to make copy trade. can you me for sample.

I have replied you https://github.com/Lu-Yi-Hsun/iqoptionapi/issues/140#issuecomment-549236779_
Please take a little effort and you can create wonders.

milseg commented 4 years ago

@Lu-Yi-Hsun What parts of the source code should developers look to add support for new currencies in other repository branches?

eumarcodev commented 4 years ago

@Lu-Yi-Hsun What parts of the source code should developers look to add support for new currencies in other repository branches?

my suspicions were confirmed, the api of the mistake in the purchase when operating a currency other than dollar, my solution was to create another account using dollar

To send operations in BRL the minimum price value is 2 BRL, different from the USD which is at least 1 USD. I Test to send binary order in BRL is return sucess to buy and check win is 0k.

bests regards