Skip to content
Start Trading

Withdraw a live IOI. Repeating a withdrawal returns 404.

client.V1.PrivateMarkets.DeleteIoi(ctx, ioiID, body) error
DELETE/v1/private-markets/iois/{ioi_id}

Withdraw a live IOI. Repeating a withdrawal returns 404.

ParametersExpand Collapse
ioiID string
body V1PrivateMarketDeleteIoiParams
AccountID param.Field[int64]

Withdraw a live IOI. Repeating a withdrawal returns 404.

package main

import (
  "context"

  "github.com/clear-street/clear-street-go"
  "github.com/clear-street/clear-street-go/option"
)

func main() {
  client := clearstreet.NewClient(
    option.WithAPIKey("My API Key"),
  )
  err := client.V1.PrivateMarkets.DeleteIoi(
    context.TODO(),
    "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
    clearstreet.V1PrivateMarketDeleteIoiParams{
      AccountID: 0,
    },
  )
  if err != nil {
    panic(err.Error())
  }
}
Returns Examples