35 lines
1.3 KiB
Protocol Buffer
35 lines
1.3 KiB
Protocol Buffer
syntax = "proto3";
|
|
|
|
import "lib/api/domain/SecurityCriteria.proto";
|
|
import "lib/api/core/RegexFormatting.proto";
|
|
|
|
package bts.api.md;
|
|
|
|
option csharp_namespace = "bts.api.md";
|
|
option cc_enable_arenas = true;
|
|
|
|
message BinanceCoinFuturesMarketDataConfig {
|
|
uint32 num_depth_levels = 1;
|
|
uint32 depth_throttle_ms = 2;
|
|
bts.api.domain.SecurityCriteria security_criteria = 3;
|
|
// Market data isn't subscribed for securities listed here (even if they are
|
|
// included by 'security_criteria'). There are some securities that don't
|
|
// fit into our system just yet, such as 'BTCBIDR', which trades in prices
|
|
// larger than our cpp 'domain::Price' class supports.
|
|
repeated string excluded_securities = 4;
|
|
|
|
// The list of instruments at Binance is obtained via an 'exchangeInfo' http
|
|
// rest request. In the corresponding response, each instrument has a 'pair'
|
|
// field, which is analgous to a security desc in our system (a unique
|
|
// human-readable string representation of the security). For some
|
|
// instruments, the string representation used in the market depth request is
|
|
// slightly different.
|
|
//
|
|
// 'depth_symbol_mappings' is a list of regex find/replace patterns to
|
|
// apply (to the 'pair' field) when subscribing to depth.
|
|
repeated bts.api.core.RegexFormatting security_desc_formattings = 5;
|
|
|
|
string url_rest_base = 6;
|
|
string url_ws_base = 7;
|
|
}
|