Removed exchange from sub acocunt config
This commit is contained in:
1 parent
5cedf74406
commit
79de0dd4d8
3 files changed
+2
-5
No files matched your search
@@ -33,10 +33,10 @@ class AdminServiceUtils {
|
||||
return is_int_account ? entry.bts_account_name()
|
||||
: entry.exchange_subaccount();
|
||||
};
|
||||
if (sec == nullptr)
|
||||
if(sec == nullptr)
|
||||
return nullptr;
|
||||
for (const auto &u : exch_sub_accounts.accounts()) {
|
||||
if (u.exchange() == sec->exchange() && get_account(u) == account)
|
||||
if (get_account(u) == account)
|
||||
return &u;
|
||||
}
|
||||
return nullptr;
|
||||
|
||||
@@ -87,12 +87,10 @@ value{
|
||||
ExchangeSubAccounts {
|
||||
value{
|
||||
accounts{
|
||||
exchange: VENUE_DERIBIT
|
||||
exchange_subaccount: "ZmIKL6fb"
|
||||
bts_account_name: "MAIN"
|
||||
}
|
||||
accounts{
|
||||
exchange: VENUE_DERIBIT
|
||||
exchange_subaccount: "v1iSzZrY"
|
||||
bts_account_name: "SMALL"
|
||||
}
|
||||
|
||||
@@ -101,7 +101,6 @@ message DefaultAccount{
|
||||
|
||||
// this ultimately needs to go to risk admin: sub_account -> account
|
||||
message ExchangeSubAccountUnit{
|
||||
optional bts.api.Venue exchange = 1;
|
||||
optional string exchange_subaccount = 10;
|
||||
optional string bts_account_name = 20;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user