refactor: Move BinanceDepthStreamParams into own file

This commit is contained in:
John Colvin committed 2022-06-07 22:44:33 -04:00
1 parent 5d56a8e440
commit 2e201159d8
2 files changed
+16 -10

No files matched your search

@@ -0,0 +1,15 @@
syntax = "proto3";
import "lib/api/io/URL.proto";
package bts.api.md.binance;
message BinanceDepthStreamParams {
bts.api.io.URL stream_url = 1;
bts.api.io.URL snapshot_url = 2;
repeated string symbols = 3;
// The number of book levels to observe. At the time of writing this comment,
// valid values are 1, 5, 10, 100, 1000, or unlimited (represented by 0).
// Check the binance api docs for updates.
uint32 num_levels = 4;
}
@@ -1,19 +1,10 @@
syntax = "proto3";
import "lib/api/io/URL.proto";
import "lib/api/md/binance/BinanceDepthStreamParams.proto";
package bts.api.md.binance;
message BinanceDepthStreamParams {
bts.api.io.URL stream_url = 1;
bts.api.io.URL snapshot_url = 2;
repeated string symbols = 3;
// The number of book levels to observe. At the time of writing this comment,
// valid values are 1, 5, 10, 100, 1000, or unlimited (represented by 0).
// Check the binance api docs for updates.
uint32 num_levels = 4;
}
message BinanceMarketDataSubscriptionParams {
repeated BinanceDepthStreamParams depth_streams = 2;
}