Skip to content

Unable to choose stop type for stop loss orders #81

Description

@WouterVanHecke

Trying to add a STOP LOSS order via node, but I am unable to select the stop type in the builder.
Resulting in my stop loss orders to be executed immediately.

const addStoplossOrderReq = Spot.Order.AddStopOrderReq.builder()
  .setClientOid(randomUUID())
  .setType(Spot.Order.AddStopOrderReq.TypeEnum.MARKET)
  .setSymbol(pair)
  .setSide(Spot.Order.AddStopOrderReq.SideEnum.BUY)
  .setStopPrice(String(stoplossPrice))
  .setStop('entry') => MISSING
  .setSize(String(formattedQuantity))
  .build();

Also, new DefaultClient(clientOption).restService()
.getSpotService()
.getOrderApi().addStopOrder() => Shows depricated, but I cannot find for a "new" or "updated" version of this function?

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