Enum FolioMessage

Source
pub enum FolioMessage {
Show 17 variants GetFillsQuery(MarketFilter, HalfOpenRange<Option<DateTime<Utc>>>), GetFillsQueryResponse(MarketFilter, HalfOpenRange<Option<DateTime<Utc>>>, Arc<Vec<Result<Fill, AberrantFill>>>), GetFills(Uuid, GetFills), Fills(Option<Uuid>, CptyId, Result<Fills, GetFillsError>), RealtimeFill(Result<Fill, AberrantFill>), GetAllAccountSummaries(Uuid, Option<Arc<BTreeSet<AccountId>>>), AllAccountSummaries(Uuid, Vec<(CptyId, Arc<AccountSummaries>)>), GetAccountSummaries(Uuid, CptyId, Option<Arc<BTreeSet<AccountId>>>), AccountSummaries(Option<Uuid>, CptyId, Option<Arc<AccountSummaries>>), UpdateAccountSummaries, SyncFillsForward, SyncFillsBackward(CptyId), InvalidateSyncBefore(CptyId, DateTime<Utc>), InvalidateSyncAfter(CptyId, DateTime<Utc>), GetSyncStatus(Uuid, CptyId), GetSyncStatusResponse(Uuid, FolioSyncStatus), SnapshotBalances,
}
Expand description

Cpty should implement the following RPCs/messages for Folio integration:

  • GetFills/Fills
  • GetAccountSummaries/AccountSummaries
  • Fills (realtime unsolicited fill dropcopy)

Variants§

§

GetFillsQuery(MarketFilter, HalfOpenRange<Option<DateTime<Utc>>>)

§

GetFillsQueryResponse(MarketFilter, HalfOpenRange<Option<DateTime<Utc>>>, Arc<Vec<Result<Fill, AberrantFill>>>)

§

GetFills(Uuid, GetFills)

§

Fills(Option<Uuid>, CptyId, Result<Fills, GetFillsError>)

§

RealtimeFill(Result<Fill, AberrantFill>)

Cptys should dropcopy realtime fills to Folio as they become known

§

GetAllAccountSummaries(Uuid, Option<Arc<BTreeSet<AccountId>>>)

Request account summaries snapshot from all cptys, grouped by cpty

  • request id
  • account ids (None for all accounts)
§

AllAccountSummaries(Uuid, Vec<(CptyId, Arc<AccountSummaries>)>)

§

GetAccountSummaries(Uuid, CptyId, Option<Arc<BTreeSet<AccountId>>>)

Request account summaries snapshot; can be called internally (as Folio <-> Cpty), or externally (client <-> Folio)

  • request id
  • cpty id
  • account ids (None for all accounts)
§

AccountSummaries(Option<Uuid>, CptyId, Option<Arc<AccountSummaries>>)

Response from cpty with balances snapshot; may be unsolicited (response_id = None) from cptys

§

UpdateAccountSummaries

Control message to folio to update balances

§

SyncFillsForward

Control messages to folio to sync fills

§

SyncFillsBackward(CptyId)

§

InvalidateSyncBefore(CptyId, DateTime<Utc>)

§

InvalidateSyncAfter(CptyId, DateTime<Utc>)

§

GetSyncStatus(Uuid, CptyId)

§

GetSyncStatusResponse(Uuid, FolioSyncStatus)

§

SnapshotBalances

Take a snapshot of balances and upsert

Trait Implementations§

Source§

impl Clone for FolioMessage

Source§

fn clone(&self) -> FolioMessage

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for FolioMessage

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for FolioMessage

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl JsonSchema for FolioMessage

Source§

fn schema_name() -> String

The name of the generated JSON Schema. Read more
Source§

fn json_schema(gen: &mut SchemaGenerator) -> Schema

Generates a JSON Schema for this type. Read more
Source§

fn is_referenceable() -> bool

Whether JSON Schemas generated for this type should be re-used where possible using the $ref keyword. Read more
Source§

impl MaybeRequest for FolioMessage

Source§

impl Serialize for FolioMessage

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl TryFrom<&BinanceMessage> for FolioMessage

Source§

type Error = ()

The type returned in the event of a conversion error.
Source§

fn try_from(value: &BinanceMessage) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<&FolioMessage> for BinanceMessage

Source§

type Error = ()

The type returned in the event of a conversion error.
Source§

fn try_from(value: &FolioMessage) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<&FolioMessage> for CoinbaseMessage

Source§

type Error = ()

The type returned in the event of a conversion error.
Source§

fn try_from(f: &FolioMessage) -> Result<Self, ()>

Performs the conversion.
Source§

impl TryFrom<&FolioMessage> for CoinbasePrimeMessage

Source§

type Error = ()

The type returned in the event of a conversion error.
Source§

fn try_from(f: &FolioMessage) -> Result<Self, ()>

Performs the conversion.
Source§

impl TryFrom<&FolioMessage> for CqgMessage

Source§

type Error = ()

The type returned in the event of a conversion error.
Source§

fn try_from(f: &FolioMessage) -> Result<Self, ()>

Performs the conversion.
Source§

impl TryFrom<&FolioMessage> for DeribitMessage

Source§

type Error = ()

The type returned in the event of a conversion error.
Source§

fn try_from(f: &FolioMessage) -> Result<Self, ()>

Performs the conversion.
Source§

impl TryFrom<&FolioMessage> for FalconXMessage

Source§

type Error = ()

The type returned in the event of a conversion error.
Source§

fn try_from(f: &FolioMessage) -> Result<Self, ()>

Performs the conversion.
Source§

impl TryFrom<&FolioMessage> for KalshiMessage

Source§

type Error = ()

The type returned in the event of a conversion error.
Source§

fn try_from(f: &FolioMessage) -> Result<Self, ()>

Performs the conversion.
Source§

impl TryFrom<&FolioMessage> for KrakenMessage

Source§

type Error = ()

The type returned in the event of a conversion error.
Source§

fn try_from(f: &FolioMessage) -> Result<Self, ()>

Performs the conversion.
Source§

impl TryFrom<&FolioMessage> for OkxMessage

Source§

type Error = ()

The type returned in the event of a conversion error.
Source§

fn try_from(value: &FolioMessage) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<&FolioMessage> for WintermuteMessage

Source§

type Error = ()

The type returned in the event of a conversion error.
Source§

fn try_from(f: &FolioMessage) -> Result<Self, ()>

Performs the conversion.
Source§

impl TryFrom<&OkxMessage> for FolioMessage

Source§

type Error = ()

The type returned in the event of a conversion error.
Source§

fn try_from(value: &OkxMessage) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryInto<CboeDigitalMessage> for &FolioMessage

Source§

type Error = ()

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<CboeDigitalMessage, Self::Error>

Performs the conversion.
Source§

impl TryInto<CumberlandMessage> for &FolioMessage

Source§

type Error = ()

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<CumberlandMessage, Self::Error>

Performs the conversion.
Source§

impl TryInto<FolioMessage> for &CboeDigitalMessage

Source§

type Error = ()

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<FolioMessage, Self::Error>

Performs the conversion.
Source§

impl TryInto<FolioMessage> for &CoinbaseMessage

Source§

type Error = ()

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<FolioMessage, ()>

Performs the conversion.
Source§

impl TryInto<FolioMessage> for &CoinbasePrimeMessage

Source§

type Error = ()

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<FolioMessage, ()>

Performs the conversion.
Source§

impl TryInto<FolioMessage> for &CqgMessage

Source§

type Error = ()

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<FolioMessage, ()>

Performs the conversion.
Source§

impl TryInto<FolioMessage> for &CumberlandMessage

Source§

type Error = ()

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<FolioMessage, Self::Error>

Performs the conversion.
Source§

impl TryInto<FolioMessage> for &DeribitMessage

Source§

type Error = ()

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<FolioMessage, ()>

Performs the conversion.
Source§

impl TryInto<FolioMessage> for &FalconXMessage

Source§

type Error = ()

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<FolioMessage, ()>

Performs the conversion.
Source§

impl TryInto<FolioMessage> for &KalshiMessage

Source§

type Error = ()

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<FolioMessage, ()>

Performs the conversion.
Source§

impl TryInto<FolioMessage> for &KrakenMessage

Source§

type Error = ()

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<FolioMessage, ()>

Performs the conversion.
Source§

impl TryInto<FolioMessage> for &WintermuteMessage

Source§

type Error = ()

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<FolioMessage, ()>

Performs the conversion.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
Source§

impl<T> DynClone for T
where T: Clone,

Source§

fn __clone_box(&self, _: Private) -> *mut ()

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,