@@ -160,7 +160,7 @@ public async Task ValidateSpotTradingCalls()
160160 await tester . ValidateAsync ( client => client . SpotApi . Trading . CancelOrderAsync ( "ETHUSDT" , 123 ) , "CancelOrder" ) ;
161161 await tester . ValidateAsync ( client => client . SpotApi . Trading . CancelAllOrdersAsync ( "ETHUSDT" ) , "CancelAllOrders" ) ;
162162 await tester . ValidateAsync ( client => client . SpotApi . Trading . ReplaceOrderAsync ( "ETHUSDT" , Enums . OrderSide . Sell , Enums . SpotOrderType . Limit , Enums . CancelReplaceMode . AllowFailure , 123 , quantity : 1 ) , "ReplaceOrder" , nestedJsonProperty : "data" ) ;
163- await tester . ValidateAsync ( client => client . SpotApi . Trading . AmendOrderAsync ( "ETHUSDT" , 123 , newQty : 0.5 ) , "AmendOrder" ) ;
163+ await tester . ValidateAsync ( client => client . SpotApi . Trading . AmendOrderAsync ( "ETHUSDT" , newQuantity : 5.0m , orderId : 123 ) , "AmendOrder" ) ;
164164 await tester . ValidateAsync ( client => client . SpotApi . Trading . GetOrderAsync ( "ETHUSDT" , 123 ) , "GetOrder" ) ;
165165 await tester . ValidateAsync ( client => client . SpotApi . Trading . GetOpenOrdersAsync ( "ETHUSDT" ) , "GetOpenOrders" ) ;
166166 await tester . ValidateAsync ( client => client . SpotApi . Trading . GetOrdersAsync ( "ETHUSDT" ) , "GetOrders" ) ;
@@ -626,30 +626,30 @@ public async Task ValidateGeneralSimpleEarnCalls()
626626 RateLimiterEnabled = false ,
627627 } ) ) ;
628628 var tester = new RestRequestValidator < BinanceRestClient > ( client , "Endpoints/General/SimpleEarn" , "https://api.binance.com" , IsAuthenticated ) ;
629- await tester . ValidateAsync ( client => client . GeneralApi . SimpleEarn . GetAccountAsync ( ) , "GetAccount" ) ;
630- await tester . ValidateAsync ( client => client . GeneralApi . SimpleEarn . GetFlexibleProductsAsync ( ) , "GetFlexibleProducts" ) ;
631- await tester . ValidateAsync ( client => client . GeneralApi . SimpleEarn . GetLockedProductsAsync ( ) , "GetLockedProducts" ) ;
632- await tester . ValidateAsync ( client => client . GeneralApi . SimpleEarn . GetFlexibleProductPositionsAsync ( ) , "GetFlexibleProductPositions" ) ;
633- await tester . ValidateAsync ( client => client . GeneralApi . SimpleEarn . GetLockedProductPositionsAsync ( ) , "GetLockedProductPositions" ) ;
634- await tester . ValidateAsync ( client => client . GeneralApi . SimpleEarn . GetFlexiblePersonalQuotaLeftAsync ( "123" ) , "GetFlexiblePersonalQuotaLeft" ) ;
635- await tester . ValidateAsync ( client => client . GeneralApi . SimpleEarn . GetLockedPersonalQuotaLeftAsync ( "123" ) , "GetLockedPersonalQuotaLeft" ) ;
636- await tester . ValidateAsync ( client => client . GeneralApi . SimpleEarn . SubscribeFlexibleProductAsync ( "123" , 1 ) , "SubscribeFlexibleProduct" ) ;
637- await tester . ValidateAsync ( client => client . GeneralApi . SimpleEarn . SubscribeLockedProductAsync ( "123" , 1 ) , "SubscribeLockedProduct" ) ;
638- await tester . ValidateAsync ( client => client . GeneralApi . SimpleEarn . RedeemFlexibleProductAsync ( "123" ) , "RedeemFlexibleProduct" ) ;
639- await tester . ValidateAsync ( client => client . GeneralApi . SimpleEarn . RedeemLockedProductAsync ( "123" ) , "RedeemLockedProduct" ) ;
640- await tester . ValidateAsync ( client => client . GeneralApi . SimpleEarn . SetFlexibleAutoSubscribeAsync ( "123" , true ) , "SetFlexibleAutoSubscribe" ) ;
641- await tester . ValidateAsync ( client => client . GeneralApi . SimpleEarn . SetLockedAutoSubscribeAsync ( "123" , true ) , "SetLockedAutoSubscribe" ) ;
642- await tester . ValidateAsync ( client => client . GeneralApi . SimpleEarn . GetFlexibleSubscriptionPreviewAsync ( "123" , 1 ) , "GetFlexibleSubscriptionPreview" ) ;
643- await tester . ValidateAsync ( client => client . GeneralApi . SimpleEarn . GetLockedSubscriptionPreviewAsync ( "123" , 1 ) , "GetLockedSubscriptionPreview" ) ;
644- await tester . ValidateAsync ( client => client . GeneralApi . SimpleEarn . SetLockedRedeemOptionAsync ( "123" , RedeemDestination . Flexible ) , "SetLockedRedeemOption" ) ;
645- await tester . ValidateAsync ( client => client . GeneralApi . SimpleEarn . GetFlexibleSubscriptionRecordsAsync ( ) , "GetFlexibleSubscriptionRecords" ) ;
646- await tester . ValidateAsync ( client => client . GeneralApi . SimpleEarn . GetLockedSubscriptionRecordsAsync ( ) , "GetLockedSubscriptionRecords" ) ;
647- await tester . ValidateAsync ( client => client . GeneralApi . SimpleEarn . GetFlexibleRedemptionRecordsAsync ( ) , "GetFlexibleRedemptionRecords" ) ;
648- await tester . ValidateAsync ( client => client . GeneralApi . SimpleEarn . GetLockedRedemptionRecordsAsync ( ) , "GetLockedRedemptionRecords" ) ;
649- await tester . ValidateAsync ( client => client . GeneralApi . SimpleEarn . GetFlexibleRewardRecordsAsync ( RewardType . All ) , "GetFlexibleRewardRecords" ) ;
650- await tester . ValidateAsync ( client => client . GeneralApi . SimpleEarn . GetLockedRewardRecordsAsync ( ) , "GetLockedRewardRecords" ) ;
651- await tester . ValidateAsync ( client => client . GeneralApi . SimpleEarn . GetCollateralRecordsAsync ( "123" ) , "GetCollateralRecords" ) ;
652- await tester . ValidateAsync ( client => client . GeneralApi . SimpleEarn . GetRateHistoryAsync ( "123" ) , "GetRateHistory" ) ;
629+ await tester . ValidateAsync ( client => client . GeneralApi . SimpleEarn . GetAccountAsync ( ) , "GetAccount" ) ;
630+ await tester . ValidateAsync ( client => client . GeneralApi . SimpleEarn . GetFlexibleProductsAsync ( ) , "GetFlexibleProducts" ) ;
631+ await tester . ValidateAsync ( client => client . GeneralApi . SimpleEarn . GetLockedProductsAsync ( ) , "GetLockedProducts" ) ;
632+ await tester . ValidateAsync ( client => client . GeneralApi . SimpleEarn . GetFlexibleProductPositionsAsync ( ) , "GetFlexibleProductPositions" ) ;
633+ await tester . ValidateAsync ( client => client . GeneralApi . SimpleEarn . GetLockedProductPositionsAsync ( ) , "GetLockedProductPositions" ) ;
634+ await tester . ValidateAsync ( client => client . GeneralApi . SimpleEarn . GetFlexiblePersonalQuotaLeftAsync ( "123" ) , "GetFlexiblePersonalQuotaLeft" ) ;
635+ await tester . ValidateAsync ( client => client . GeneralApi . SimpleEarn . GetLockedPersonalQuotaLeftAsync ( "123" ) , "GetLockedPersonalQuotaLeft" ) ;
636+ await tester . ValidateAsync ( client => client . GeneralApi . SimpleEarn . SubscribeFlexibleProductAsync ( "123" , 1 ) , "SubscribeFlexibleProduct" ) ;
637+ await tester . ValidateAsync ( client => client . GeneralApi . SimpleEarn . SubscribeLockedProductAsync ( "123" , 1 ) , "SubscribeLockedProduct" ) ;
638+ await tester . ValidateAsync ( client => client . GeneralApi . SimpleEarn . RedeemFlexibleProductAsync ( "123" ) , "RedeemFlexibleProduct" ) ;
639+ await tester . ValidateAsync ( client => client . GeneralApi . SimpleEarn . RedeemLockedProductAsync ( "123" ) , "RedeemLockedProduct" ) ;
640+ await tester . ValidateAsync ( client => client . GeneralApi . SimpleEarn . SetFlexibleAutoSubscribeAsync ( "123" , true ) , "SetFlexibleAutoSubscribe" ) ;
641+ await tester . ValidateAsync ( client => client . GeneralApi . SimpleEarn . SetLockedAutoSubscribeAsync ( "123" , true ) , "SetLockedAutoSubscribe" ) ;
642+ await tester . ValidateAsync ( client => client . GeneralApi . SimpleEarn . GetFlexibleSubscriptionPreviewAsync ( "123" , 1 ) , "GetFlexibleSubscriptionPreview" ) ;
643+ await tester . ValidateAsync ( client => client . GeneralApi . SimpleEarn . GetLockedSubscriptionPreviewAsync ( "123" , 1 ) , "GetLockedSubscriptionPreview" ) ;
644+ await tester . ValidateAsync ( client => client . GeneralApi . SimpleEarn . SetLockedRedeemOptionAsync ( "123" , RedeemDestination . Flexible ) , "SetLockedRedeemOption" ) ;
645+ await tester . ValidateAsync ( client => client . GeneralApi . SimpleEarn . GetFlexibleSubscriptionRecordsAsync ( ) , "GetFlexibleSubscriptionRecords" ) ;
646+ await tester . ValidateAsync ( client => client . GeneralApi . SimpleEarn . GetLockedSubscriptionRecordsAsync ( ) , "GetLockedSubscriptionRecords" ) ;
647+ await tester . ValidateAsync ( client => client . GeneralApi . SimpleEarn . GetFlexibleRedemptionRecordsAsync ( ) , "GetFlexibleRedemptionRecords" ) ;
648+ await tester . ValidateAsync ( client => client . GeneralApi . SimpleEarn . GetLockedRedemptionRecordsAsync ( ) , "GetLockedRedemptionRecords" ) ;
649+ await tester . ValidateAsync ( client => client . GeneralApi . SimpleEarn . GetFlexibleRewardRecordsAsync ( RewardType . All ) , "GetFlexibleRewardRecords" ) ;
650+ await tester . ValidateAsync ( client => client . GeneralApi . SimpleEarn . GetLockedRewardRecordsAsync ( ) , "GetLockedRewardRecords" ) ;
651+ await tester . ValidateAsync ( client => client . GeneralApi . SimpleEarn . GetCollateralRecordsAsync ( "123" ) , "GetCollateralRecords" ) ;
652+ await tester . ValidateAsync ( client => client . GeneralApi . SimpleEarn . GetRateHistoryAsync ( "123" ) , "GetRateHistory" ) ;
653653 }
654654
655655 [ Test ]
@@ -666,19 +666,19 @@ public async Task ValidateGeneralMiningCalls()
666666 RateLimiterEnabled = false ,
667667 } ) ) ;
668668 var tester = new RestRequestValidator < BinanceRestClient > ( client , "Endpoints/General/Mining" , "https://api.binance.com" , IsAuthenticated ) ;
669- await tester . ValidateAsync ( client => client . GeneralApi . Mining . GetMiningCoinListAsync ( ) , "GetMiningCoinList" , nestedJsonProperty : "data" ) ;
670- await tester . ValidateAsync ( client => client . GeneralApi . Mining . GetMiningAlgorithmListAsync ( ) , "GetMiningAlgorithmList" , nestedJsonProperty : "data" ) ;
671- await tester . ValidateAsync ( client => client . GeneralApi . Mining . GetMinerDetailsAsync ( "sha256" , "test" , "bhdc1.16A10404B" ) , "GetMinerDetails" , nestedJsonProperty : "data" ) ;
672- await tester . ValidateAsync ( client => client . GeneralApi . Mining . GetMinerListAsync ( "sha256" , "test" ) , "GetMinerList" , nestedJsonProperty : "data" ) ;
673- await tester . ValidateAsync ( client => client . GeneralApi . Mining . GetMiningRevenueListAsync ( "sha256" , "test" ) , "GetMiningRevenueList" , nestedJsonProperty : "data" ) ;
674- await tester . ValidateAsync ( client => client . GeneralApi . Mining . GetMiningOtherRevenueListAsync ( "sha256" , "test" ) , "GetMiningOtherRevenueList" , nestedJsonProperty : "data" ) ;
675- await tester . ValidateAsync ( client => client . GeneralApi . Mining . GetMiningStatisticsAsync ( "sha256" , "test" ) , "GetMiningStatistics" , nestedJsonProperty : "data" ) ;
676- await tester . ValidateAsync ( client => client . GeneralApi . Mining . GetMiningAccountListAsync ( "sha256" , "test" ) , "GetMiningAccountList" , nestedJsonProperty : "data" ) ;
677- await tester . ValidateAsync ( client => client . GeneralApi . Mining . GetHashrateResaleListAsync ( ) , "GetHashrateResaleList" , nestedJsonProperty : "data" ) ;
678- await tester . ValidateAsync ( client => client . GeneralApi . Mining . GetHashrateResaleDetailsAsync ( 168 , "test" ) , "GetHashrateResaleDetails" , nestedJsonProperty : "data" ) ;
679- await tester . ValidateAsync ( client => client . GeneralApi . Mining . PlaceHashrateResaleRequestAsync ( "test" , "sha256" , DateTime . UtcNow . AddDays ( - 1 ) , DateTime . UtcNow , "S19Pro" , 100000000 ) , "PlaceHashrateResaleRequest" , nestedJsonProperty : "data" ) ;
680- await tester . ValidateAsync ( client => client . GeneralApi . Mining . CancelHashrateResaleRequestAsync ( 168 , "test" ) , "CancelHashrateResaleRequest" , nestedJsonProperty : "data" ) ;
681- await tester . ValidateAsync ( client => client . GeneralApi . Mining . GetMiningAccountEarningsAsync ( "sha256" ) , "GetMiningAccountEarnings" , nestedJsonProperty : "data" ) ;
669+ await tester . ValidateAsync ( client => client . GeneralApi . Mining . GetMiningCoinListAsync ( ) , "GetMiningCoinList" , nestedJsonProperty : "data" ) ;
670+ await tester . ValidateAsync ( client => client . GeneralApi . Mining . GetMiningAlgorithmListAsync ( ) , "GetMiningAlgorithmList" , nestedJsonProperty : "data" ) ;
671+ await tester . ValidateAsync ( client => client . GeneralApi . Mining . GetMinerDetailsAsync ( "sha256" , "test" , "bhdc1.16A10404B" ) , "GetMinerDetails" , nestedJsonProperty : "data" ) ;
672+ await tester . ValidateAsync ( client => client . GeneralApi . Mining . GetMinerListAsync ( "sha256" , "test" ) , "GetMinerList" , nestedJsonProperty : "data" ) ;
673+ await tester . ValidateAsync ( client => client . GeneralApi . Mining . GetMiningRevenueListAsync ( "sha256" , "test" ) , "GetMiningRevenueList" , nestedJsonProperty : "data" ) ;
674+ await tester . ValidateAsync ( client => client . GeneralApi . Mining . GetMiningOtherRevenueListAsync ( "sha256" , "test" ) , "GetMiningOtherRevenueList" , nestedJsonProperty : "data" ) ;
675+ await tester . ValidateAsync ( client => client . GeneralApi . Mining . GetMiningStatisticsAsync ( "sha256" , "test" ) , "GetMiningStatistics" , nestedJsonProperty : "data" ) ;
676+ await tester . ValidateAsync ( client => client . GeneralApi . Mining . GetMiningAccountListAsync ( "sha256" , "test" ) , "GetMiningAccountList" , nestedJsonProperty : "data" ) ;
677+ await tester . ValidateAsync ( client => client . GeneralApi . Mining . GetHashrateResaleListAsync ( ) , "GetHashrateResaleList" , nestedJsonProperty : "data" ) ;
678+ await tester . ValidateAsync ( client => client . GeneralApi . Mining . GetHashrateResaleDetailsAsync ( 168 , "test" ) , "GetHashrateResaleDetails" , nestedJsonProperty : "data" ) ;
679+ await tester . ValidateAsync ( client => client . GeneralApi . Mining . PlaceHashrateResaleRequestAsync ( "test" , "sha256" , DateTime . UtcNow . AddDays ( - 1 ) , DateTime . UtcNow , "S19Pro" , 100000000 ) , "PlaceHashrateResaleRequest" , nestedJsonProperty : "data" ) ;
680+ await tester . ValidateAsync ( client => client . GeneralApi . Mining . CancelHashrateResaleRequestAsync ( 168 , "test" ) , "CancelHashrateResaleRequest" , nestedJsonProperty : "data" ) ;
681+ await tester . ValidateAsync ( client => client . GeneralApi . Mining . GetMiningAccountEarningsAsync ( "sha256" ) , "GetMiningAccountEarnings" , nestedJsonProperty : "data" ) ;
682682 }
683683
684684 // Staking tests (placeholder)
0 commit comments