Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
JKorf committed Jan 24, 2025
1 parent 01c0f79 commit 63c4ce2
Show file tree
Hide file tree
Showing 271 changed files with 1,469 additions and 3,998 deletions.
11 changes: 0 additions & 11 deletions Bitfinex.Net.UnitTests/BitfinexClientTests.cs
Original file line number Diff line number Diff line change
@@ -1,25 +1,14 @@
using System;
using Bitfinex.Net.Objects;
using CryptoExchange.Net.Authentication;
using CryptoExchange.Net;
using NUnit.Framework;
using System.Linq;
using Bitfinex.Net.UnitTests.TestImplementations;
using Moq;
using System.Net;
using System.Threading.Tasks;
using System.Reflection;
using System.Diagnostics;
using CryptoExchange.Net.Objects;
using CryptoExchange.Net.Sockets;
using Bitfinex.Net.Clients;
using Bitfinex.Net.ExtensionMethods;
using CryptoExchange.Net.Objects.Sockets;
using NUnit.Framework.Legacy;
using CryptoExchange.Net.Clients;
using System.Net.Http;
using System.Collections.Generic;
using CryptoExchange.Net.Converters.JsonNet;
using CryptoExchange.Net.Testing.Implementations;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
Expand Down
313 changes: 31 additions & 282 deletions Bitfinex.Net.UnitTests/BitfinexSocketClientTests.cs

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ POST
true
[
[
1574332100000, //MTS_CREATE
null, //PLACEHOLDER
'settings: api key created', //LOG
null, //PLACEHOLDER
null, //PLACEHOLDER
'182.64.34.9', //IP
'Mozilla/5.0 (X11; CrOS x86_64 12499.51.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.92 Safari/537.36' //USER_AGENT
1574332100000,
null,
"settings: api key created",
null,
null,
"182.64.34.9",
"Mozilla/5.0 (X11; CrOS x86_64 12499.51.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.92 Safari/537.36"
]
]
10 changes: 5 additions & 5 deletions Bitfinex.Net.UnitTests/Endpoints/Spot/Account/GetAlertList.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ POST
true
[
[
"price:tETHUSD:220", //INFO
"price", //TYPE
"tETHUSD", //PAIR
220, //PRICE
100 //COUNTDOWN
"price:tETHUSD:220",
"price",
"tETHUSD",
220,
100
]
]
Original file line number Diff line number Diff line change
Expand Up @@ -3,52 +3,52 @@ POST
true
[
[
'account', //SCOPE
1, //READ
1 //WRITE
], //KEY_PERMISSION_ARRAY
"account",
1,
1
],
[
'history', //SCOPE
1, //READ
1 //WRITE
], //KEY_PERMISSION_ARRAY
"history",
1,
1
],
[
'orders',
"orders",
1,
1
],
[
'positions',
"positions",
0,
0
],
[
'funding',
"funding",
1,
1
],
[
'settings',
"settings",
0,
0
],
[
'wallets',
"wallets",
1,
1
],
[
'withdraw',
"withdraw",
0,
1
],
[
'ui_withdraw',
"ui_withdraw",
0,
0
],
[
'bfxpay',
"bfxpay",
0,
0
]
Expand Down
30 changes: 15 additions & 15 deletions Bitfinex.Net.UnitTests/Endpoints/Spot/Account/GetBalances.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,20 @@ POST
true
[
[
"exchange", //TYPE
"UST", //CURRENCY
19788.6529257, //BALANCE
0, //UNSETTLED_INTEREST
19788.6529257, //AVAILABLE_BALANCE
"Exchange 2.0 UST for USD @ 11.696", //LAST_CHANGE
"exchange",
"UST",
19788.6529257,
0,
19788.6529257,
"Exchange 2.0 UST for USD @ 11.696",
{
reason: "TRADE",
order_id: 1189740779,
order_id_oppo: 1189785673,
trade_price: "11.696",
trade_amount: "-2.0",
order_cid: 1598516362757,
order_gid: 1598516362629
} //TRADE_DETAILS
] //WALLET
"reason": "TRADE",
"order_id": 1189740779,
"order_id_oppo": 1189785673,
"trade_price": "11.696",
"trade_amount": "-2.0",
"order_cid": 1598516362757,
"order_gid": 1598516362629
}
]
]
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
POST
/v2/auth/r/info/margin/base
true
["base", //KEY
[-3631.798995959999 //USER_PL
,5.6376, //USER_SWAPS
299933.09380832, //MARGIN_BALANCE
296301.29481236, //MARGIN_BALANCE_NET
4975.291049394 //MARGIN_MIN
] //MARGIN_BASE_DATA_ARRAY
["base",
[-3631.798995959999
,5.6376,
299933.09380832,
296301.29481236,
4975.291049394
]
]
28 changes: 14 additions & 14 deletions Bitfinex.Net.UnitTests/Endpoints/Spot/Account/GetDepositAddress.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,19 @@ POST
/v2/auth/w/deposit/address
true
[
1568738594687, //MTS
"acc_dep", //TYPE
null, //MESSAGE_ID
null, //PLACEHOLDER
1568738594687,
"acc_dep",
null,
null,
[
null, //PLACEHOLDER
"BITCOIN", //METHOD
"BTC", //CURRENCY_CODE
null, //PLACEHOLDER
"YOURADDRESS", //ADDRESS
null //POOL_ADDRESS
], //DEPOSIT_ADDRESS_ARRAY
null, //CODE
"SUCCESS", //STATUS
"success" //TEXT
null,
"BITCOIN",
"BTC",
null,
"YOURADDRESS",
null
],
null,
"SUCCESS",
"success"
]
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ POST
true
[
[
2531822314, //ID
"USD", //CURRENCY
"margin", //WALLET
1573521810000, //MTS
null, //PLACEHOLDER
0.01644445, //AMOUNT
0, //BALANCE
null, //PLACEHOLDER
"Settlement @ 185.79 on wallet margin" //DESCRIPTION
2531822314,
"USD",
"margin",
1573521810000,
null,
0.01644445,
0,
null,
"Settlement @ 185.79 on wallet margin"
]
]
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ POST
true
[
[
78404724, //ID
null, //PLACEHOLDER
1579202754000, //TIME
null, //PLACEHOLDER
'184.214.55.220', //IP
null, //PLACEHOLDER
null, //PLACEHOLDER
'{"asn": "28545, Cablemas Telecomunicaciones SA de CV", "geo": "Canc�n, MX", "user_agent": {"os": "Windows 10", "raw": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.117 Safari/537.36", "browser": "Chrome", "version": "79.0.3945.117", "platform": "Windows", "is_mobile": false}}' //EXTRA_INFO
78404724,
null,
1579202754000,
null,
"184.214.55.220",
null,
null,
"{\"asn\": \"28545, Cablemas Telecomunicaciones SA de CV\", \"geo\": \"Canc�n, MX\", \"user_agent\": {\"os\": \"Windows 10\", \"raw\": \"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.117 Safari/537.36\", \"browser\": \"Chrome\", \"version\": \"79.0.3945.117\", \"platform\": \"Windows\", \"is_mobile\": false}}"
]
]
86 changes: 43 additions & 43 deletions Bitfinex.Net.UnitTests/Endpoints/Spot/Account/GetMovements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,51 +3,51 @@ POST
true
[
[
13105603, //ID
'ETH', //CURRENCY
'ETHEREUM', //CURRENCY_NAME
null, //PLACEHOLDER
null, //PLACEHOLDER
1569348774000, //MTS_STARTED
1569348774000, //MTS_UPDATED
null, //PLACEHOLDER
null, //PLACEHOLDER
'COMPLETED', //STATUS
null, //PLACEHOLDER
null, //PLACEHOLDER
0.26300954, //AMOUNT
-0.00135, //FEES
null, //PLACEHOLDER
null, //PLACEHOLDER
'DESTINATION_ADDRESS', //DESTINATION_ADDRESS
null, //PAYMENT_ID
null, //PLACEHOLDER
null, //PLACEHOLDER
'TRANSACTION_ID', //TRANSACTION_ID
null //WITHDRAW_TRANSACTION_NOTE
13105603,
"ETH",
"ETHEREUM",
null,
null,
1569348774000,
1569348774000,
null,
null,
"COMPLETED",
null,
null,
0.26300954,
-0.00135,
null,
null,
"DESTINATION_ADDRESS",
null,
null,
null,
"TRANSACTION_ID",
null
],
[
13293039, //ID
'ETH', //CURRENCY
'ETHEREUM', //CURRENCY_NAME
null, //PLACEHOLDER
null, //PLACEHOLDER
1574175052000, //MTS_STARTED
1574181326000, //MTS_UPDATED
null, //PLACEHOLDER
null, //PLACEHOLDER
'CANCELED', //STATUS
null, //PLACEHOLDER
null, //PLACEHOLDER
-0.24, //AMOUNT
-0.00135, //FEES
null, //PLACEHOLDER
null, //PLACEHOLDER
'DESTINATION_ADDRESS', //DESTINATION_ADDRESS
null, //PAYMENT_ID
null, //PLACEHOLDER
null, //PLACEHOLDER
'TRANSACTION_ID',"Purchase of 100 pizzas" //WITHDRAW_TRANSACTION_NOTE
13293039,
"ETH",
"ETHEREUM",
null,
null,
1574175052000,
1574181326000,
null,
null,
"CANCELED",
null,
null,
-0.24,
-0.00135,
null,
null,
"DESTINATION_ADDRESS",
null,
null,
null,
"TRANSACTION_ID","Purchase of 100 pizzas"
]
]

Loading

0 comments on commit 63c4ce2

Please sign in to comment.