Skip to content

Commit 0129da1

Browse files
committed
feat(lazer): add FeedKind to protocol
1 parent 1cb5d89 commit 0129da1

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

lazer/publisher_sdk/proto/state.proto

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,16 @@ enum FeedState {
5555
INACTIVE = 2;
5656
}
5757

58+
// Feed kind determines the set of data fields available in the feed.
59+
// It also determines the kind of data accepted from publishers for this feed
60+
// (`PriceUpdate` or `FundingRateUpdate`).
61+
enum FeedKind {
62+
// Fields: price, best_bid_price, best_ask_price
63+
PRICE = 0;
64+
// Fields: price, rate.
65+
FUNDING_RATE = 1;
66+
}
67+
5868
// An item of the state describing a feed.
5969
message Feed {
6070
// [required] ID of the feed.
@@ -82,8 +92,10 @@ message Feed {
8292
optional google.protobuf.Duration expiry_time = 105;
8393
// [required] Market schedule in Pythnet format.
8494
optional string market_schedule = 106;
85-
// [required] Feed state
95+
// [required] Feed state.
8696
optional FeedState state = 107;
97+
// [required] Feed kind.
98+
optional FeedKind kind = 108;
8799

88100

89101
// [required] Feed status in the current shard. Disabled feeds will not be visible in
@@ -92,7 +104,7 @@ message Feed {
92104
//
93105
// If a feed is present in
94106
// multiple shards, it must only be active in one of them at each time.
95-
// To enforce this, `pending_activation` and `pending_deactivation` fields
107+
// To enforce this, `enable_in_shard_timestamp` and `disable_in_shard_timestamp` fields
96108
// can be used to deactivate a feed in one shard and activate it in another shard
97109
// at the same instant.
98110
optional bool is_enabled_in_shard = 201;

0 commit comments

Comments
 (0)