You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+16-14Lines changed: 16 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,10 +6,12 @@ It adds an CCXT Wrapper purely python based by using the direct request calls fo
6
6
Right now not all methods functions are implemented.
7
7
- fetchOHLCV delegates to Binance since Reya only support candles up to 1D-Timeframe and no easy management for calling last X Candles. Start und End Time is needed every time. Additonally the api is not as fast for complicated calculations based on a lot of candles.
8
8
- The Signer for Private calls is not finished, so it relays on the SDK functions.
9
-
- fetchBalance only recognized staked RUSD (0xa9f32a851b1800742e47725da54a09a7ef2556a3). Different Tokens for Collateral are not supported right now (wrtETH f.e.)
9
+
- fetchBalance only recognized RUSD. Different Tokens for Collateral are not supported right now (wrtETH f.e.)
10
10
- fetch_canceled_and_closed_orders not supported right now
11
11
- setLeverage not supported right now (no reya api endpoint)
12
12
- short orders can be placed but are not fully considered by profit calculation
13
+
14
+
If you prefer a streamlined repo without the reya sdk integrated take a look at https://github.com/marcelkb/reya-ccxt-adapter
Create a `.env` file in the project root with the following variables:
31
+
32
+
```
33
+
ACCOUNT_ID=your_account_id
34
+
PRIVATE_KEY=your_private_key
35
+
CHAIN_ID=1729 # Use 89346162 for testnet
36
+
REYA_WS_URL=wss://ws.reya.xyz/ # Use wss://websocket-testnet.reya.xyz/ for testnet
37
+
REYA_API_BASE_URL=https://api.reya.xyz/v2 # Use https://api-test.reya.xyz/v2 for testnet
38
+
OWNER_WALLET_ADDRESS=your_wallet_address # Required: wallet address for data queries
39
+
```
40
+
26
41
## Usage
27
42
28
43
```
@@ -33,7 +48,6 @@ from sdk.reya_rest_api import TradingConfig, ReyaTradingClient
33
48
load_dotenv()
34
49
config = TradingConfig.from_env()
35
50
36
-
#signer = ReyaSignerAdapter(private_key = config.private_key, wallet_address=config.owner_wallet_address, account_id=config.account_id, chain_id=config.chain_id) TODO not working right now
37
51
exchange = Reya({
38
52
'walletAddress': config.owner_wallet_address,
39
53
'privateKey': config.private_key,
@@ -230,18 +244,6 @@ For example, the response might look like:
230
244
]
231
245
```
232
246
233
-
## Environment Setup
234
-
235
-
Create a `.env` file in the project root with the following variables:
236
-
237
-
```
238
-
ACCOUNT_ID=your_account_id
239
-
PRIVATE_KEY=your_private_key
240
-
CHAIN_ID=1729 # Use 89346162 for testnet
241
-
REYA_WS_URL=wss://ws.reya.xyz/ # Use wss://websocket-testnet.reya.xyz/ for testnet
242
-
REYA_API_BASE_URL=https://api.reya.xyz/v2 # Use https://api-test.reya.xyz/v2 for testnet
243
-
OWNER_WALLET_ADDRESS=your_wallet_address # Required: wallet address for data queries
0 commit comments