MT5: Deposit (mt5_deposit)

This call allows deposit into MT5 account from Binary account.

Auth Scope(s): payments

mt5_deposit(to_mt5: str, amount: Optional[Union[int, float, Decimal]] = None, from_binary: Optional[str] = None, passthrough: Optional[Any] = None, req_id: Optional[int] = None) → int
Parameters:
  • to_mt5 (str) – MT5 account login to deposit money to
  • amount (Optional[Union[int, float, Decimal]]) – Amount to deposit (in the currency of from_binary); min = $1 or an equivalent amount, max = $20000 or an equivalent amount
  • from_binary (Optional[str]) – Binary account loginid to transfer money from
  • 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.mt5_deposit(
    amount=1000
    from_binary='CR100001'
    to_mt5='MTR1000'
)