def test_buy(self, access_token):
        client = Client(access_token)
        order = client.buy(1000000, 0.001)

        self.assertEqual(order.result, "success")
        self.assertEqual(order.error_code, 0)
        self.assertIsInstance(order.order_id, str)
    def test_buy_with_mock(self, mock_request):
        _ = mock_request

        client = Client("access_token")
        order = client.buy(100000, 0.001)

        self.assertEqual(order.result, "success")
        self.assertEqual(order.error_code, 0)
        self.assertIsInstance(order.order_id, str)