コード例 #1
0
    def test_sell(self, access_token, secret_key):
        client = Client(access_token, secret_key)
        order = client.sell(13910000.0, 0.001)

        self.assertEqual(order.result, "success")
        self.assertEqual(order.error_code, 0)
        self.assertIsInstance(order.order_id, str)
コード例 #2
0
    def test_sell_with_mock(self, mock_request):
        _ = mock_request

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

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