<commit_before>```python
from poloniex.api import subscribe
from poloniex.app import Application

API_KEY = "YOUR_API_KEY"
API_SECRET = "YOUR_API_SEC"

class App(Application):
    @subscribe('trollbox')
    def trollbox(self, msg):
        print(msg)

    @subscribe('ticker')
    def ticker(self, msg):
        print(msg)

    async def main(self):
        r = await self.public_api.return24Volume()
        print(r)
        r = await self.public_api.return24Volume()
        print(r)
        r = await self.public_api.return24Volume()
        print(r)

app = App(api_key=API_KEY, api_sec=API_SECRET)
app.run()
```<commit_msg>change readme<commit_after>```python
__author__ = '<EMAIL>'

from logging import DEBUG
from poloniex.app import Application

API_KEY = "YOUR_API_KEY"
API_SECRET = "YOUR_API_SECRET"


class App(Application):
    def __init__(self, *args, **kwargs):
        super().__init__(*args, **kwargs)
        self.logger.setLevel(DEBUG)

    async def ticker(self, **kwargs):
        self.logger.info(kwargs)

    async def trades(self, **kwargs):
        self.logger.info(kwargs)

    async def main(self):
        await self.push_api.subscribe(topic="BTC_ETH", handler=self.trades)
        await self.push_api.subscribe(topic="ticker", handler=self.ticker)
        volume = await self.public_api.return24Volume()

        self.logger.info(volume)


app = App(api_key=API_KEY, api_sec=API_SECRET)
app.run()

```
{'fraction_non_alphanumeric': 0.12675070028011204, 'fraction_numerical': 0.0056022408963585435, 'mean_word_length': 3.5221518987341773, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7332236', 'n_tokens_mistral': 507, 'n_tokens_neox': 488, 'n_words': 96}