Comments (4)
The endpoint /position
returns fields realisedPnl
and unrealisedPnl
, those may be useful.
from sample-market-maker.
Can you be more specific? What are you trying to add PnL to?
from sample-market-maker.
Hey Ryan, thanks for the response. It is more a general question to the bitMEX api really.
I would like to show the running realised and unrealised PnL for the sequence.
from sample-market-maker.
The endpoint
/position
returns fieldsrealisedPnl
andunrealisedPnl
, those may be useful.
This is true but this is only based on market price and not on last price so it is pretty much useless...
from sample-market-maker.
Related Issues (20)
- ERROR - ws_thread - API Key incorrect, please check and restart.
- How to set start_position equal to current open position?
- Unable to link WS HOT 1
- cannot execute
- old filter? HOT 1
- Usability after nov. 23, no more bulk orders HOT 3
- bulk order endpoint issue after last commit HOT 3
- How can I make this bot to open the Long only or Short only trades on one side instead of both sides
- Cannot Import name "BITMEX" from Partially initialized module 'market_maker' HOT 1
- How to run markermaker setup?
- Sample market-maker stopping at "Connected to WS. Waiting for data images, this may take a moment..." HOT 1
- Cant get bot to make live (test net) orders HOT 1
- __on_error() takes 2 positional arguments but 3 were given
- The implementation is outdated does not work with the current BitMex API HOT 1
- KeyError: 'clOrdID' HOT 1
- ws_thread.py funds can return wrong currency
- Versions after 1.5.0 can't be edited. HOT 1
- Websocket error "can only concatenate str (not "int") to str" HOT 4
- NameError: global name 'FileExistsError' is not defined HOT 1
- Error while connecting with websocket
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 sample-market-maker.