Ellipsis-Labs / phoenix-sdk

SDK for interacting with the Phoenix DEX.
83 stars 39 forks source link

limit order #160

Open HeTimepiece opened 5 months ago

HeTimepiece commented 5 months ago

({"err":{"InstructionError":[0,{"Custom":21}]}}) i use the getLimitOrderInstructionfromTemplate(marketaddress,trader,template),the template is { side: PhoenixSdk.Side.Bid, priceAsFloat: bidPrice, sizeInBaseUnits: 1, selfTradeBehavior: PhoenixSdk.SelfTradeBehavior.Abort, clientOrderId: 1, useOnlyDepositedFunds: false, lastValidSlot: undefined, lastValidUnixTimestampInSeconds: currentTime + ORDER_LIFETIME_IN_SECONDS, }

0xBreath commented 5 months ago

I don't work for Phoenix, but I am a Star Atlas engineer and could likely help. First thing that helps debug this is a transaction link. When you send the transaction it returns a signature. Just copy paste that here and whether its devnet/mainnet and I'll check it out.

Cryptojen17 commented 5 months ago

@.***

On Thu, 11 Apr 2024 at 3:09 PM, Drew @.***> wrote:

I don't work for Phoenix, but I am a Star Atlas engineer and could likely help. First thing that helps debug this is a transaction link. When you send the transaction it returns a signature. Just copy paste that here and whether its devnet/mainnet and I'll check it out.

— Reply to this email directly, view it on GitHub https://github.com/Ellipsis-Labs/phoenix-sdk/issues/160#issuecomment-2050640994, or unsubscribe https://github.com/notifications/unsubscribe-auth/A6KU6NYYHAAJIKICSKFLPULY44C2PAVCNFSM6AAAAABF4F4WHKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANJQGY2DAOJZGQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>

HeTimepiece commented 5 months ago

我不在凤凰城工作,但我是一名星图工程师,可能会提供帮助。有助于调试的第一件事是事务链接。当您发送交易时,它会返回一个签名。只需将其复制粘贴到此处,以及它是否是 devnet/mainnet,我会检查一下。

thanks your help guys, the signature is 54qXLBoH1oq77R4WosWWQKVpgVYXDwv2o1DfUw8dzPdBY2qKhJK9QdAMg2hBxptd7P9Ccp71AbYnoqbc29q9oycC in mainnet