https://github.com/fund-flow/fund-flow-server
Multi-Agent Actions Server - Backend
https://github.com/fund-flow/fund-flow-server
cow-protocol express nodejs privy typescript
Last synced: about 2 months ago
JSON representation
Multi-Agent Actions Server - Backend
- Host: GitHub
- URL: https://github.com/fund-flow/fund-flow-server
- Owner: fund-flow
- Created: 2025-02-08T03:43:57.000Z (4 months ago)
- Default Branch: master
- Last Pushed: 2025-02-09T17:33:21.000Z (4 months ago)
- Last Synced: 2025-02-09T18:31:19.122Z (4 months ago)
- Topics: cow-protocol, express, nodejs, privy, typescript
- Language: TypeScript
- Homepage:
- Size: 72.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Fund Flow Server
- Privy Server Wallet
- CoW Swap## Example usage
```bash
curl --location 'http://localhost:3050/api/v1/swap' \
--header 'Content-Type: application/json' \
--data '{
"totalUsdcAmount": "5000000",
"allocations": {
"userWallet": "0x2e84B79dd9773d712f9D20a98C4ee76541B9533D",
"assets": [
"OETHb",
"WETH",
"cbBTC",
"AERO",
"wstETH"
],
"allocations": [
0.25,
0.25,
0.2,
0.15,
0.15
],
"analysis": [
{
"asset_name": "OETHb",
"reason": "OETHb has a significant TVL and consistent trading volume, indicating strong market activity and potential for long-term growth."
},
{
"asset_name": "WETH",
"reason": "WETH is a widely used asset with high liquidity and trading volume, making it a stable choice for a medium-risk portfolio."
},
{
"asset_name": "cbBTC",
"reason": "cbBTC offers exposure to Bitcoin'\''s price movements and has a substantial TVL, aligning with a medium-risk tolerance."
},
{
"asset_name": "AERO",
"reason": "AERO has a growing ecosystem and moderate TVL, providing diversification and potential for growth."
},
{
"asset_name": "wstETH",
"reason": "wstETH represents staked Ether, offering exposure to Ethereum'\''s ecosystem with added staking benefits."
}
]
}
}'
```## Running the server
```bash
npm install
``````bash
npm run build
``````bash
npm run start
```