Comments (1)
If taking profits in something other than USD this becomes an issue to merge the currencies.
API Response when trading in ETH
{ id: 583761554,
bot_id: 4750245,
max_safety_orders: 5,
from_currency_id: 0,
to_currency_id: 0,
account_id: 30030251,
active_safety_orders_count: 1,
created_at: '2021-06-11T00:52:08.324Z',
updated_at: '2021-06-11T00:52:08.524Z',
closed_at: null,
'finished?': false,
current_active_safety_orders_count: 1,
current_active_safety_orders: 1,
completed_safety_orders_count: 0,
completed_manual_safety_orders_count: 0,
'cancellable?': true,
'panic_sellable?': true,
trailing_enabled: false,
tsl_enabled: false,
stop_loss_timeout_enabled: false,
stop_loss_timeout_in_seconds: 0,
active_manual_safety_orders: 0,
pair: 'ETH_ADA',
status: 'active',
localized_status: 'Bought',
take_profit: '1.0',
base_order_volume: '1.0',
safety_order_volume: '2.0',
safety_order_step_percentage: '1.0',
leverage_type: 'not_specified',
leverage_custom_value: null,
bought_amount: '1624.0',
bought_volume: '1.00128684656',
bought_average_price: '0.00061655594',
base_order_average_price: '0.00061655594',
sold_amount: '0.0',
sold_volume: '0.0',
sold_average_price: '0',
take_profit_type: 'total',
final_profit: '-0.00273064',
martingale_coefficient: '1.0',
martingale_volume_coefficient: '1.0',
martingale_step_coefficient: '1.0',
stop_loss_percentage: '0.0',
error_message: null,
profit_currency: 'base_currency',
stop_loss_type: 'stop_loss',
safety_order_volume_type: 'quote_currency',
base_order_volume_type: 'quote_currency',
from_currency: 'ETH',
to_currency: 'ADA',
current_price: '0.00061671',
take_profit_price: '0.00062335',
stop_loss_price: null,
final_profit_percentage: '0',
actual_profit_percentage: '0.02',
usd_final_profit: '-6.67',
actual_profit: '-0.0007513436',
actual_usd_profit: '-1.83635889276',
failed_message: null,
reserved_base_coin: '1.00128684656',
reserved_second_coin: '1624.0',
trailing_deviation: '0.2',
tsl_max_price: null,
strategy: 'long' }
Script response
{ id: 583761554,
status: 'active',
max_safety_orders: 5,
account_id: 30030251,
bot_id: 4750245,
'created_at (UTC)': '06-11-2021',
open_1: null,
'closed_at (UTC)': null,
deal_hours: '0.02',
completed_safety_orders_count: 0,
pair: 'ADA',
from_currency: 'ETH',
take_profit: '1.0',
base_order_volume: 1,
safety_order_volume: 2,
max_deal_funds: '11.00',
bought_amount: 1624,
bought_volume: 1.00128684656,
bought_average_price: 0.00061655594,
sold_amount: 0,
sold_volume: 0,
martingale_coefficient: 1,
martingale_volume_coefficient: 1,
martingale_step_coefficient: 1,
current_price: 0.00061582,
take_profit_price: 0.00062335,
bot_name: 'Paper trading account USDT Long Bot',
actual_profit: '-0.00219525824',
actual_usd_profit: '-5.3814999547008',
Impact_Factor: 1.1920964953706215,
hourly_per_unit_profit_percent: -0.10948096030805272 }
Market Order
{ order_id: '364739581',
order_type: 'BUY',
deal_order_type: 'Base',
cancellable: false,
status_string: 'Filled',
created_at: '2021-06-11T00:52:08.470Z',
updated_at: '2021-06-11T00:52:08.470Z',
quantity: '1624.0',
quantity_remaining: '0.0',
total: '1.00128684656',
rate: '0.0',
average_price: '0.00061594' }
from gsheets-3c-portfolio-manager.
Related Issues (11)
- Chunked data push to sheet
- Redo the API handler HOT 2
- v6.3: Add drawdown % to the Drawdown (query) table
- Sidebar Changes HOT 1
- Grid bots api endpoint
- Currency should default to the first available or it looks like it's not populating anything.
- Build Accounts table HOT 1
- Create overall performance dashboard
- IDEA: Bot manager implementation
- Pull script properties on new sheet create
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gsheets-3c-portfolio-manager.