chore: Add exec fee to sec metadata config

This commit is contained in:
John Colvin committed 2025-07-22 01:36:50 -04:00
1 parent ebad249505
commit 70bb2e2e65
4 files changed
+30

No files matched your search

+3
View File
@@ -53,6 +53,9 @@
<Proto Include="../../lib_spark/spark/api/domain/Currency.proto">
<OutDir>$(ProtoOutputPath)/lib_spark/spark/api/domain</OutDir>
</Proto>
<Proto Include="../../lib_spark/spark/api/domain/ExecFeeRule.proto">
<OutDir>$(ProtoOutputPath)/lib_spark/spark/api/domain</OutDir>
</Proto>
<Proto Include="../../lib_spark/spark/api/domain/SecurityCriteria.proto">
<OutDir>$(ProtoOutputPath)/lib_spark/spark/api/domain</OutDir>
</Proto>
@@ -0,0 +1,10 @@
syntax = "proto3";
package bts.api.domain;
option csharp_namespace = "bts.api.domain";
message ExecFeeRule {
string account = 1;
double maker_fee = 2;
double taker_fee = 3;
}
@@ -1,6 +1,7 @@
syntax = "proto3";
package bts.api.domain;
import "spark/api/domain/ExecFeeRule.proto";
import "spark/api/domain/TickDisplayRule.proto";
import "spark/api/domain/TickDisplaySettings.proto";
@@ -10,4 +11,5 @@ message SecurityMetadata {
bts.api.domain.TickDisplaySettings price_display = 1;
bts.api.domain.TickDisplaySettings quantity_display = 2;
repeated bts.api.domain.TickDisplayRule price_rules = 3;
repeated bts.api.domain.ExecFeeRule exec_fee_rules = 4;
}
@@ -167,5 +167,20 @@ SecurityMetadataCollection {
}
}
}
items {
scope {
clauses {
venues: VENUE_BYBIT
}
}
value {
exec_fee_rules {
account: "*"
maker_fee: -0.005
taker_fee: 0.02
}
}
}
}
}