sbsmatthie

Hi, I need help I am running a code to initiate contracts as follows: let contract = await api.contract({ contract_type: c_type, currency :'USD', amount : my_stake.toFixed(2), duration : 1, duration_unit: 'm', symbol : 'RDBULL', basis : 'stake', subscribe : 1, }); And to buy that contract for my account I am using the following line of code: const buy = await contract.buy(); With this the contract is successfully bought. My challenge comes when I want to but same contract for multiple accounts. I tried following lines of code but without success as all returns error that says ....is not a function: I tried 1. const buy = await contract.buyContractForMultipleAccounts(); I tried 2. const buy = await contract.buy_contract_for_multiple_accounts(); How can I buy contract for multiple accounts?

Activity

  • Not much happening here, yet.