---
# System prepended metadata

title: ACE API response

---


# Open API - Account Balance
```

data= requests.post(
  "https://ace.io/polarisex/open/v2/coin/customerAccount", data=request_params
)

print(data.json())
```

```
out put
{'attachment': [{'uid': 37445, 'currencyId': 14, 'currencyName': 'USDT', 'amount': '19.90672861', 'cashAmount': '19.90672861'}, {'uid': 37445, 'currencyId': 102, 'currencyName': 'YFI', 'amount': '0.00000978', 'cashAmount': '0.00000978'}, {'uid': 37445, 'currencyId': 1, 'currencyName': 'TWD', 'amount': '0.95119575', 'cashAmount': '0.95119575'}], 
'message': None, 
'class': 'com.polarisex.common.RespEntity', 
'parameters': None, 
'status': 200}
```


{'uid': 37445, 'currencyId': 14, 'currencyName': 'USDT', 'amount': '19.90672861', 'cashAmount': '15.90671161'}![image](https://hackmd.io/_uploads/HkFXZPbw6.png)


# Open API - get order book

```
getOrderBook = requests.get(
    "https://ace.io/polarisex/open/v2/public/getOrderBook", params=request_params
)

print(getOrderBook.json())
```

```
out put
{'attachment': {'baseCurrencyId': '2', 'quoteCurrencyId': '1', 'baseCurrencyName': 'BTC', 'quoteCurrencyName': 'TWD', 
'bids': [['0.000015', '1306849.3'], ['0.000124', '1306839.7'], ['0.000004', '1306714.9'], ['0.000027', '1306696.4'], ['0.000052', '1306620.7'], ['0.000012', '1306603.8'], ['0.000001', '1306579.3'], ['0.000003', '1306538.8'], ['0.000001', '1306362.6'], ['0.000003', '1306302.4']], 
'asks': [['0.001147', '1307481'], ['0.225983', '1307686.2'], ['0.128129', '1307891.5'], ['0.099774', '1308096.8'], ['0.182839', '1308302.1'], ['0.173769', '1308507.3'], ['0.000033', '1308647'], ['0.000484', '1308653.9'], ['0.000003', '1308710.3'], ['0.122652', '1308712.6']]}, 
'status': 200, 'message': None, 'parameters': None}
```

