Currency buy_contract_for_multiple_accounts

Hello.
I have a problem.
My account with currency USD (auth with this token).
Via buy_contract_for_multiple_accounts buy contract for account with currency EUR.
Error code: InvalidCurrency.
Why?

Comments

  • @avluzenin tokens that you have provided for multiple buy are for same account? or multiple accounts? if multiple accounts what is the currency of their account?

  • @Raunak said:
    @avluzenin tokens that you have provided for multiple buy are for same account? or multiple accounts? if multiple accounts what is the currency of their account?

    EUR.
    I authorize by my token with currency USD. And buy only one contract for currency EUR for other account (other token).
    ps: sorry for my english.

  • @avluzenin are you getting response similar to this

    {
      "buy_contract_for_multiple_accounts": {
        "result": [
          {
            "buy_price": "5.15",
            "contract_id": "205699",
            "longcode": "Win payout if Volatility 10 Index is strictly lower than entry spot at 10 minutes after contract start time.",
            "payout": "10",
            "purchase_time": 1481168746,
            "shortcode": "PUT_R_10_10_1481168746_1481169346_S0P_0",
            "start_time": 1481168746,
            "token": "3AvCzPIblZQ6KsN",
            "transaction_id": "212339"
          },
          {
            "code": "NotDefaultCurrency",
            "message_to_client": "The provided currency USD is not the default currency",
            "token": "q4tnXbw05bTwiqD"
          }
        ]
      },
      "echo_req": {
        "buy_contract_for_multiple_accounts": 1,
        "parameters": {
          "amount": 10,
          "app_markup_percentage": "0",
          "basis": "payout",
          "contract_type": "PUT",
          "currency": "USD",
          "duration": 10,
          "duration_unit": "m",
          "symbol": "R_10"
        },
        "passthrough": {},
        "price": 5.15,
        "tokens": [
          "3AvCzPIbN",
          "q4tnXbw0D"
        ]
      },
      "msg_type": "buy_contract_for_multiple_accounts",
      "passthrough": {}
    }
    
Sign In or Register to comment.