OpenPit
Pre-trade Integrity Toolkit
pre-trade risk go python rust c api open source apache 2.0

Instrument

Back to the C API index

OpenPitInstrument

Trading instrument view.

The caller owns the memory referenced by both string views.

Semantics:

  • both string views set: instrument is present;
  • both string views not set: instrument is absent;
  • only one string view set: invalid payload.
typedef struct OpenPitInstrument {
    OpenPitStringView underlying_asset;
    OpenPitStringView settlement_asset;
} OpenPitInstrument;