We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8301f05 commit 41a529eCopy full SHA for 41a529e
pc/user.cpp
@@ -273,7 +273,12 @@ void user::parse_sub_price_sched( uint32_t tok, uint32_t itok )
273
if ( 0 == (ntok = jp_.find_val( ptok, "account" ) ) ) break;
274
pub_key pkey;
275
pkey.init_from_text( jp_.get_str( ntok ) );
276
+
277
+ // Check to see if the price exists in either the primary or the secondary manager
278
price *sptr = sptr_->get_price( pkey );
279
+ if ( !sptr && sptr_->has_secondary() ) {
280
+ sptr = sptr_->get_secondary()->get_price( pkey );
281
+ };
282
if ( PC_UNLIKELY( !sptr ) ) { add_unknown_symbol(itok); return; }
283
284
// add subscription
0 commit comments