nomeida / hyperliquid

Simple and easy way to access the Hyperliquid API using Javascript/Typescript
14 stars 7 forks source link

TP and SL doesn't work #3

Open DanailYordanov opened 2 months ago

DanailYordanov commented 2 months ago

The SDK doesn't provide an option to set the grouping of an order to either positionTpsl or normalTpsl. Even when the grouping is set manually, the signing is incorrect, leading to errors such as:

{
  status: 'err',
  response: 'L1 error: User or API Wallet .... does not exist.'
}
nomeida commented 2 months ago

Yes, I'm aware of this issue - not really sure why the signing fails with TP/SL orders specifically but it is something I'm working on fixing