We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to get the price for long or short ?
To pass an order i'm using getMarket.indexPrice but order cannot pass without using a multiplier (0.1%)
getMarket.indexPrice
const accounts = await getAccounts(); console.log(accounts); const market = await getMarket("MATIC-USD"); console.log(market);
then
const order = await placeOrder( "MATIC-USD", "BUY", "MARKET", "FOK", false, parseInt(accounts[0].freeCollateral / market.indexPrice).toString(), (market.indexPrice * 1.002).toFixed(size), plus30m ); console.log(order);
What can I use as price to a market order ?
Transaction is systematically expired
The text was updated successfully, but these errors were encountered:
Probably because it can round it down below market price. You can try something like that, it worked for me: Math.round(market.indexPrice * 1.001) + 1
Sorry, something went wrong.
No branches or pull requests
How to get the price for long or short ?
To pass an order i'm using
getMarket.indexPrice
but order cannot pass without using a multiplier (0.1%)then
What can I use as price to a market order ?
Transaction is systematically expired
The text was updated successfully, but these errors were encountered: