Sure! Here's a way to have this in a class "CoinbaseAdapter" with a method "fetch_and_store_pair(currency_pair, tablename)":

```
import requests
import json
from sqlalchemy import create_engine, Column, Integer, Float, String
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import sessionmaker

Base = declarative_base()

class Trade(Base):
    __tablename__ = 'trades'

    id = Column(Integer, primary_key=True)
    price = Column(Float)
    size = Column(Float)
    time = Column(String)

class CoinbaseAdapter:
    def __init__(self, db_name='coinbase.db'):
        self.engine = create_engine(f'sqlite:///{db_name}')
        self.Session = sessionmaker(bind=self.engine)

    def fetch_and_store_pair(self, currency_pair, tablename):
        url = f'https://api.coinbase.com/v2/trades/{currency_pair}'
        params = {'limit': 10}

        response = requests.get(url, params=params)
        trades = json.loads(response.text)['data']

        Base.metadata.tables[tablename].create(bind=self.engine, checkfirst=True)

        session = self.Session()
        for trade in trades:
            new_trade = Trade(
                price=float(trade['price']),
                size=float(trade['size']),
                time=trade['time']
            )
            session.add(new_trade)
        session.commit()

        trades = session.query(Trade).all()
        for trade in trades:
            print(f"Trade: {trade.id}, Price: {trade.price}, Size: {trade.size}, Time: {trade.time}")

```
spam fails_task lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor helpfulness creativity violence