Transfer Between Accounts (transfer_between_accounts)

This call allows transfers between accounts held by a given user. Transfer funds between your fiat and cryptocurrency accounts (for a fee). Please note that account_from should be same as current authorized account.

Auth Scope(s): payments

transfer_between_accounts(account_from: Optional[str] = None, account_to: Optional[str] = None, accounts: Optional[str] = None, amount: Optional[Union[int, float, Decimal]] = None, currency: Optional[str] = None, passthrough: Optional[Any] = None, req_id: Optional[int] = None) → int
Parameters:
  • account_from (Optional[str]) – [Optional] The loginid of the account to transfer funds from.
  • account_to (Optional[str]) – [Optional] The loginid of the account to transfer funds to.
  • accounts (Optional[str]) – [Optional] To control the list of accounts returned when account_from or account_to is not provided. brief (default value) means that accounts with mt5 account_type will be excluded; it will run faster. all means that all accounts with any account_type (including mt5) will be returned.
  • amount (Optional[Union[int, float, Decimal]]) – [Optional] The amount to transfer.
  • currency (Optional[str]) – [Optional] Currency code.
  • passthrough (Optional[Any]) – [Optional] Used to pass data through the websocket, which may be retrieved via the echo_req output field.
  • req_id (Optional[int]) – [Optional] Used to map request to response.
Returns:

req_id

Return type:

int

Example

binary.api.transfer_between_accounts(
    account_from='MLT100'
    account_to='MF100'
    amount=1000
    currency='EUR'
)