Integrate Crypto Exchange API into my project using python -- 2
Budget: $10 – $30 CAD
I have a python project that connects to exchanges. In order to add another exchange, I need to add another endpoint
The following endpoints need to be hooked up for 1 exchange:
1 Get ticker
2 Get order book
3 Get balance
4 Create order
5 Get order
6 Cancel order
7 Withdraw
+1 or two more
This is what one of those endpoint integrations look like:
async def _get_orderbook(self, currency, depth):
path = "/spot/order_book"
params = {'currency_pair': currency,
'limit': depth}
r = await self.get(path, params=params)
if r:
book = r
return {
'asks': list(map(self._order_dict_price_first, book['asks'])),
'bids': list(map(self._order_dict_price_first, book['bids'])),
'timestamp': self._get_timestamp(),
}
return {}
If this is done well there is potential for additional work in the future.
Bid confidently. Your price bid is your price.
The following endpoints need to be hooked up for 1 exchange:
1 Get ticker
2 Get order book
3 Get balance
4 Create order
5 Get order
6 Cancel order
7 Withdraw
+1 or two more
This is what one of those endpoint integrations look like:
async def _get_orderbook(self, currency, depth):
path = "/spot/order_book"
params = {'currency_pair': currency,
'limit': depth}
r = await self.get(path, params=params)
if r:
book = r
return {
'asks': list(map(self._order_dict_price_first, book['asks'])),
'bids': list(map(self._order_dict_price_first, book['bids'])),
'timestamp': self._get_timestamp(),
}
return {}
If this is done well there is potential for additional work in the future.
Bid confidently. Your price bid is your price.