async def run_test():

            market = 'okex'
            pair = 'ETH_BTC'
            price = '0.015'
            amount = '0.1'
            side = 'buy'
            ord_type = 'limit'

            lib = BitsgapClient(public_key, private_key)

            result = lib.orders_add(market, pair, amount, price, side,
                                    ord_type)

            logging.debug(result)

            self.assertIsNotNone(result)

            self.assertTrue(result['status'] == 'ok')
            self.assertIn('data', result)

            data = result['data'] if 'data' in result else None

            self.assertIsNotNone(data)

            self.assertIn('id', data)
            self.assertIn('price', data)
            self.assertIn('amount', data)
            self.assertIn('pair', data)
            self.assertIn('side', data)
            self.assertIn('type', data)

            await asyncio.sleep(1)
        async def run_test():
            market = 'okex'
            pair = 'invalid_pair'
            price = '0.015'
            amount = '0.1'
            side = 'buy'
            ord_type = 'limit'

            lib = BitsgapClient(public_key, private_key)

            result = lib.orders_add(market, pair, amount, price, side,
                                    ord_type)

            logging.debug(result)

            self.assertIsNotNone(result)

            self.assertTrue(result['status'] == 'error')
            self.assertIn('message', result)

            await asyncio.sleep(1)