Rename bfxapi/websocket/typings.py to types.py. Replace TypedDicts with dataclasses (with _Type as base class). Update demos in examples/websocket to use new implementation.

This commit is contained in:
Davide Casale
2023-01-16 17:07:16 +01:00
parent 1613a56d81
commit e185da4cc9
4 changed files with 77 additions and 49 deletions

View File

@@ -2,7 +2,7 @@ from decimal import Decimal
from datetime import datetime
from typing import Union, Optional, List, Tuple
from .typings import JSON
from .types import JSON
from .enums import OrderType, FundingOfferType
def _strip(dictionary):