Skip to content

Commit 1aff65b

Browse files
committed
fix: fee now with optional fields
1 parent 649b786 commit 1aff65b

File tree

1 file changed

+5
-8
lines changed
  • cryptomarket/dataclasses

1 file changed

+5
-8
lines changed

cryptomarket/dataclasses/fee.py

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,12 @@
11
from dataclasses import dataclass
2-
from typing import Any, Dict, List
3-
4-
from cryptomarket.dataclasses.orderBookLevel import OrderBookLevel
5-
2+
from typing import Any, Dict, Optional
63

74
@dataclass
85
class Fee:
9-
fee: str
10-
network_fee: str
11-
amount: str
12-
currency: str
6+
fee: Optional[str]
7+
network_fee: Optional[str]
8+
amount: Optional[str]
9+
currency: Optional[str]
1310

1411
@classmethod
1512
def from_dict(cls, data: Dict[str, Any]):

0 commit comments

Comments
 (0)