Skip to content

Commit

Permalink
feat: new subscription for proposal market prices (#113)
Browse files Browse the repository at this point in the history
* feat: new subscription for proposal market prices

* chore: version bump
  • Loading branch information
LukasDeco authored May 21, 2024
1 parent 2e9ef1a commit 28e97c4
Show file tree
Hide file tree
Showing 9 changed files with 3,313 additions and 1,572 deletions.
9 changes: 8 additions & 1 deletion lib/client/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,11 @@ import {
} from "@/types";
import { SwapType } from "@metadaoproject/futarchy";
import { Observable } from "rxjs";
import { SpotObservation, TwapObservation } from "@/types/prices";
import {
ProposalMarketPricesAggregate,
SpotObservation,
TwapObservation
} from "@/types/prices";
import { SendTransactionResponse } from "@/types/transactions";
import { BN } from "@coral-xyz/anchor";
import {
Expand Down Expand Up @@ -120,6 +124,9 @@ export interface FutarchyMarketsClient {
): Observable<Array<Order>>;
watchTwapPrices(marketKey: PublicKey): Observable<TwapObservation[]>;
watchSpotPrices(marketKey: PublicKey): Observable<SpotObservation[]>;
watchProposalMarketPricesAggregate(
proposalKey: PublicKey
): Observable<ProposalMarketPricesAggregate[]>;
}

export interface FutarchyOrderbookMarketsClient<
Expand Down
Loading

0 comments on commit 28e97c4

Please sign in to comment.