Skip to content

Commit

Permalink
Merge pull request #9132 from 0xtorch/features/add-bybit-csv-formats
Browse files Browse the repository at this point in the history
Add new Bybit CSV formats and update existing ones
  • Loading branch information
0xnekoya authored Jan 15, 2025
2 parents 4406305 + 3310560 commit fca8f10
Show file tree
Hide file tree
Showing 29 changed files with 4,814 additions and 10 deletions.
Binary file modified bun.lockb
Binary file not shown.
79 changes: 75 additions & 4 deletions csvs/bybit-funding-account.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,64 @@
"parser": {
"parsers": [
{
"description": "Earn: Flexible Savings Interest Distribution",
"description": "Airdrop > airdrop",
"conditions": [
{
"value": {
"type": "cell",
"column": "Type"
},
"pattern": "Airdrop"
}
],
"generators": [
{
"type": "airdrop",
"source": {
"type": "join",
"values": [
{ "type": "service" },
"_funding-account_",
{ "type": "cell", "column": "Date & Time(UTC)" }
]
},
"timestamp": {
"type": "cell",
"column": "Date & Time(UTC)"
},
"comment": {
"type": "join",
"values": [
"Type:",
{ "type": "cell", "column": "Type" },
" / Description: ",
{ "type": "cell", "column": "Description" }
]
},
"transfers": [
{
"direction": "in",
"amount": {
"type": "text",
"value": {
"type": "cell",
"column": "QTY"
}
},
"asset": {
"type": "symbol",
"value": {
"type": "cell",
"column": "Coin"
}
}
}
]
}
]
},
{
"description": "Earn: Flexible Savings Interest Distribution / Fixed Savings Interest Distribution > interest",
"conditions": [
{
"value": {
Expand All @@ -25,7 +82,13 @@
"type": "cell",
"column": "Description"
},
"pattern": "Flexible Savings Interest Distribution"
"pattern": {
"type": "in",
"values": [
"Flexible Savings Interest Distribution",
"Fixed Savings Interest Distribution"
]
}
}
],
"generators": [
Expand Down Expand Up @@ -75,7 +138,7 @@
]
},
{
"description": "ignore > Earn",
"description": "Earn: / Flexible Savings Subscription / Fixed Savings Subscription / Fixed Savings Principal Redemption > ignore",
"conditions": [
{
"value": {
Expand All @@ -91,7 +154,12 @@
},
"pattern": {
"type": "in",
"values": ["", "Flexible Savings Subscription"]
"values": [
"",
"Flexible Savings Subscription",
"Fixed Savings Subscription",
"Fixed Savings Principal Redemption"
]
}
}
],
Expand Down Expand Up @@ -172,5 +240,8 @@
]
}
]
},
"symbolAssetMap": {
"RNDR": "crypto/render-token"
}
}
3 changes: 3 additions & 0 deletions csvs/bybit-future-pl-before-uta.json
Original file line number Diff line number Diff line change
Expand Up @@ -230,5 +230,8 @@
]
}
]
},
"symbolAssetMap": {
"RNDR": "crypto/render-token"
}
}
Loading

0 comments on commit fca8f10

Please sign in to comment.