4d20151abd
* fix: #1537 add lp provider sub * fix: change LP title & update party.id * fix: #1537 fix obligation and supplied * fix: #1537 add min width on accounts * fix: #1537 consistent null check * fix: #1537 update lp data providers * fix: add acounts data provider but requires party id * feat: #1537 LP data provider - marketID & query or subscribe for accounts - partyId * fix: #1537 remove log and fix build * fix: #1537 fix build console lite and lp dashboard * fix: #1537 fix tsconfig lp dahsboard * fix: #1537 use interval to poll LP data - sub not working yet
114 lines
1.8 KiB
GraphQL
114 lines
1.8 KiB
GraphQL
# MarketLp
|
|
|
|
query MarketLp($marketId: ID!) {
|
|
market(id: $marketId) {
|
|
id
|
|
decimalPlaces
|
|
positionDecimalPlaces
|
|
tradableInstrument {
|
|
instrument {
|
|
code
|
|
name
|
|
product {
|
|
... on Future {
|
|
settlementAsset {
|
|
id
|
|
symbol
|
|
decimals
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
data {
|
|
market {
|
|
id
|
|
}
|
|
suppliedStake
|
|
openInterest
|
|
targetStake
|
|
marketValueProxy
|
|
}
|
|
}
|
|
}
|
|
|
|
# Liquidity Provisions
|
|
|
|
fragment LiquidityProvisionFields on LiquidityProvision {
|
|
party {
|
|
id
|
|
accountsConnection(marketId: $marketId, type: ACCOUNT_TYPE_BOND) {
|
|
edges {
|
|
node {
|
|
type
|
|
balance
|
|
}
|
|
}
|
|
}
|
|
}
|
|
createdAt
|
|
updatedAt
|
|
commitmentAmount
|
|
fee
|
|
status
|
|
}
|
|
|
|
query LiquidityProvisions($marketId: ID!) {
|
|
market(id: $marketId) {
|
|
liquidityProvisionsConnection {
|
|
edges {
|
|
node {
|
|
...LiquidityProvisionFields
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
subscription LiquidityProvisionsUpdate($partyId: ID, $marketId: ID) {
|
|
liquidityProvisions(partyId: $partyId, marketId: $marketId) {
|
|
id
|
|
partyID
|
|
createdAt
|
|
updatedAt
|
|
marketID
|
|
commitmentAmount
|
|
fee
|
|
status
|
|
}
|
|
}
|
|
|
|
# Liquidity Provider Share Fee
|
|
|
|
fragment LiquidityProviderFeeShareFields on LiquidityProviderFeeShare {
|
|
party {
|
|
id
|
|
}
|
|
equityLikeShare
|
|
averageEntryValuation
|
|
}
|
|
|
|
query LiquidityProviderFeeShare($marketId: ID!) {
|
|
market(id: $marketId) {
|
|
id
|
|
data {
|
|
market {
|
|
id
|
|
}
|
|
liquidityProviderFeeShare {
|
|
...LiquidityProviderFeeShareFields
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
subscription LiquidityProviderFeeShareUpdate($marketId: ID!) {
|
|
marketsData(marketIds: [$marketId]) {
|
|
liquidityProviderFeeShare {
|
|
partyId
|
|
equityLikeShare
|
|
averageEntryValuation
|
|
}
|
|
}
|
|
}
|