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
placeOrder
Today, it's a bit cumbersome to specify all of the fields in PlaceOrderArgs and the other fields that placeOrder takes
PlaceOrderArgs
It would be nice to have a placeOrder interface that looks something like:
public async placeOrder( market: PublicKey, side: Side, priceLots: BN, maxBaseLots: BN, maxQuoteLots: BN, orderType: OrderType, expiryTimestamp: BN = new BN(0), selfTradeBehavior: SelfTradeBehavior = SelfTradeBehavior.DecrementTake, limit: number = 255, userTokenAccount?: PublicKey, clientOrderId?: BN, ): Promise<BN>
openOrdersAccount
.setOpenOrdersAccount()
MarketAccount
userTokenAccount
that way, you would only need to specify 5 params instead of 15
The text was updated successfully, but these errors were encountered:
Solved this issue in openbook, you only need 3 params:
openbook
Have a look at the ob_client module for more info about the refactor i did to the client code.
ob_client
Sorry, something went wrong.
Solved this issue in openbook, you only need 3 params: 在openbook中解决了这个问题,你只需要3个参数: Have a look at the ob_client module for more info about the refactor i did to the client code.查看 ob_client 模块,了解有关我对客户端代码进行的重构的更多信息。
Solved this issue in openbook, you only need 3 params: 在openbook中解决了这个问题,你只需要3个参数:
Have a look at the ob_client module for more info about the refactor i did to the client code.查看 ob_client 模块,了解有关我对客户端代码进行的重构的更多信息。
why don't fix it on this repo?
No branches or pull requests
Today, it's a bit cumbersome to specify all of the fields in
PlaceOrderArgs
and the other fields thatplaceOrder
takesIt would be nice to have a
placeOrder
interface that looks something like:openOrdersAccount
could be set by a call.setOpenOrdersAccount()
on the clientMarketAccount
could be pulled either from on-chain or from a cacheuserTokenAccount
isn't provided, default could be associated token account for the user's public keythat way, you would only need to specify 5 params instead of 15
The text was updated successfully, but these errors were encountered: