@@ -431,6 +431,48 @@ public function testPreventedMatchesSpot()
431431 $ this ->assertIsArray ($ res );
432432 }
433433
434+ public function testCommissionRateSpot ()
435+ {
436+ $ res = $ this ->spotBinance ->commissionRate ($ this ->symbol );
437+ $ this ->assertIsArray ($ res );
438+ $ this ->assertArrayHasKey ('symbol ' , $ res );
439+ $ this ->assertEquals ($ this ->symbol , $ res ['symbol ' ]);
440+ $ this ->assertArrayHasKey ('standardCommission ' , $ res );
441+
442+ $ standardCommission = $ res ['standardCommission ' ];
443+ $ this ->assertIsArray ($ standardCommission );
444+ $ this ->assertArrayHasKey ('maker ' , $ standardCommission );
445+ $ this ->assertIsNumeric ($ standardCommission ['maker ' ]);
446+ $ this ->assertArrayHasKey ('taker ' , $ standardCommission );
447+ $ this ->assertIsNumeric ($ standardCommission ['taker ' ]);
448+ $ this ->assertArrayHasKey ('buyer ' , $ standardCommission );
449+ $ this ->assertIsNumeric ($ standardCommission ['buyer ' ]);
450+ $ this ->assertArrayHasKey ('seller ' , $ standardCommission );
451+ $ this ->assertIsNumeric ($ standardCommission ['seller ' ]);
452+
453+ $ this ->assertArrayHasKey ('taxCommission ' , $ res );
454+ $ taxCommission = $ res ['taxCommission ' ];
455+ $ this ->assertIsArray ($ taxCommission );
456+ $ this ->assertArrayHasKey ('maker ' , $ taxCommission );
457+ $ this ->assertIsNumeric ($ taxCommission ['maker ' ]);
458+ $ this ->assertArrayHasKey ('taker ' , $ taxCommission );
459+ $ this ->assertIsNumeric ($ taxCommission ['taker ' ]);
460+ $ this ->assertArrayHasKey ('buyer ' , $ taxCommission );
461+ $ this ->assertIsNumeric ($ taxCommission ['buyer ' ]);
462+ $ this ->assertArrayHasKey ('seller ' , $ taxCommission );
463+
464+ $ this ->assertArrayHasKey ('discount ' , $ res );
465+ $ discount = $ res ['discount ' ];
466+ $ this ->assertIsArray ($ discount );
467+ $ this ->assertArrayHasKey ('enabledForAccount ' , $ discount );
468+ $ this ->assertIsBool ($ discount ['enabledForAccount ' ]);
469+ $ this ->assertArrayHasKey ('enabledForSymbol ' , $ discount );
470+ $ this ->assertIsBool ($ discount ['enabledForSymbol ' ]);
471+ $ this ->assertArrayHasKey ('discountAsset ' , $ discount );
472+ $ this ->assertArrayHasKey ('discount ' , $ discount );
473+ $ this ->assertIsNumeric ($ discount ['discount ' ]);
474+ }
475+
434476 public function testAllocationsSpot ()
435477 {
436478 $ res = $ this ->spotBinance ->allocations ($ this ->symbol );
0 commit comments