Skip to content

Commit

Permalink
expose target balance fee
Browse files Browse the repository at this point in the history
  • Loading branch information
yellowbean committed Aug 3, 2023
1 parent ba6b288 commit 6f65f0b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions absbox/local/component.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,8 @@ def mkFeeType(x):
return mkTag(("FeeFlow", mkTs("BalanceCurve", fflow)))
case {"计数费用": [p, s, amt]} | {"numFee": [p, s, amt]}:
return mkTag(("NumFee", [mkDatePattern(p), mkDs(s), amt]))
case {"差额费用": [ds1, ds2]} | {"targetBalanceFee": [ds1, ds2]}:
return mkTag(("TargetBalanceFee", [mkDs(ds1), mkDs(ds2)]))
case _:
raise RuntimeError(f"Failed to match on fee type:{x}")

Expand Down

0 comments on commit 6f65f0b

Please sign in to comment.