Skip to content

Creating api.contract and buying is too slow #69

@iitsuraj

Description

@iitsuraj

Creating api.contract and buying it take 3-7 sec. How can I reduce that time?

Code -

`...
const contract = await api.contract({...});

contract.onUpdate(async ({status}) => {...
})

const buy = await contract.buy();
...
`

Log -

[19:06:24:756] [10/5/2021] $ {1} frxAUDJPY $939 5M CALL Create order
[19:06:35:599] [10/5/2021] $ {138614057128} frxAUDJPY 5M $939 Order Opend
[19:11:32:167] [10/5/2021] $ {138614057128 LOSS}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions