ftx | cryptocurrency derivatives exchange | Cryptography library
kandi X-RAY | ftx Summary
kandi X-RAY | ftx Summary
FTX is a cryptocurrency derivatives exchange.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Place a conditional order
- Sign a request
- Make a request
- Processes the response
- Called when a message is received
- Connects to the websocket
- Resets an orderbook
- Handle an orderbook message
- Request a quote
- Return the result
- Return connection configuration
- Cancel market orders
- Get historical prices for a market
- Submit a fiat withdrawal
- Cancel all limit orders
- Get withdrawal fee
- Check that all required env vars are set
- Gets the sum of all accounts in the current wallet
- Returns a list of fills
- Cancel an order
- Get market order history
- Modify an order
- Place an order
- Send a new order
- Get all trades for a market
- Login
- Get conditional order history
ftx Key Features
ftx Examples and Code Snippets
Community Discussions
Trending Discussions on ftx
QUESTION
I try to get withdrawal fees from an exchange API:
...ANSWER
Answered 2021-Jun-01 at 01:27You have typo - you have to use single /
between api/wallet
QUESTION
Im trying to plot the percentage change from previous daily close to current price. Everything works fine, but when a new candle closes the value returns to 0 and only plots the current bar change instead of the daily change. If I refresh the page then its back to normal, until another candle closes.
...ANSWER
Answered 2021-May-05 at 12:49This calculates the ROC between the chart's close
and the non-repainting HTF value fetched with the security()
call, which is the close of the last completed day of symbol a
:
QUESTION
I’m learning python and dash and I’m building an application for monitoring my trading.
I’ve adapted the code from : “Live Updating Components” example (Orbital Satellite). It works well on jupyter notebook and repl.it but I have an error when I try it on my computer :
"Traceback (most recent call last): File "orbital.py", line 62, in Input('interval-component', 'n_intervals'))"
“The input argument interval-component.n_intervals must be a list or tuple of dash.dependencies.Inputs.”
I don’t understand why
Here is my code :
...ANSWER
Answered 2021-Apr-04 at 15:14As the error is trying to say, you need to wrap your Input
in a list, like this:
QUESTION
I wish to compute a function (a Fourier series) that passes through some set of given points.
Similar to what is going on here https://gofigure.impara.ai/ , but I wish not to animate it. I merely want the function so that I can draw the shape myself. I have read lots of math stuff describing it and code that animates it, but I am struggling with my implementation.
My current code is as follows [should be able to run in a python notebook alone]
...ANSWER
Answered 2021-Apr-03 at 19:51There are actually a few issues that need to be resolved to get the expected outline. Let's go over each of those issues.
Fourier coefficient computation
Since you are computing the FFT of the 2D array complexmdpts
(each element being an array of 1 complex value), the default behavior of scipy.fft
is to compute the FFT along the last axis. In this case it means that you are in fact computing n
FFTs of length 1 and given that FFTs of length 1 are identities, the entire computation returns the original array.
One solution would be to specify axis=0
explicitly:
QUESTION
I'm looking to deploy my python-telegram bot on Heroku but the bot seems to be unresponsive. The .py works just fine locally, but when I deploy it the app builds perfectly and is on, but produces no response on telegram when prompted. The code is very basic but I think I am missing something with the webhook maybe? I'm new to web stuff as my background is more in data science. Below is my code and procfile.
...ANSWER
Answered 2021-Apr-01 at 12:22AFAIK Heroku doesn't support long polling, so you should use a webhook. python-telegram-bot
comes with a built-in webhook. See here and also this skeleton-repo.
QUESTION
So my example is, I'm writing a Discord bot so that when I type a command in chat it will return the corresponding value.
Now I'm starting off with ammo for this game, the problem being there is a fair few different types of ammo in the game. Since I am new to coding and Python I wanted to get into the habit of separating them into different .py
files so my codes isn't all messed and i can jump between them easily and keep track of everything down the line.
In my main file there isn't anything but import shotgun_1, shotgun_2
.
What I noticed, though, is that only shotgun_1
commands will be recognized; shotgun_2
doesn't work.
If I remove shotgun_1
and have only import shotgun_2
then the shotgun_2
code will work and send in the chat "HI!". If i remove shotgun_2
and only use shotgun_1
then the commands of shotgun_1
work.
Is there a way to somehow link these two files so they execute the same time?
shotgun_1.py ...ANSWER
Answered 2021-Feb-14 at 02:13I would suggest not separating these two aspects into different files. shotgun_2.py
does not contain any code that could not be put into shotgun_1.py
. This is also why shotgun_2.py
doesn't do anything when shotgun_1.py
runs. Your current method imports shotgun_2.py
, but it doesn't do anything after it imports. I cut out large chunks of code, but here are my edits:
QUESTION
Hi i try to get data from api and record it to dataframe but not work. how can i fix it?
edit. i fetch data by ccxt lib to create order to exchange.
data info on buy
###create_buy_order : {'info': {'avgFillPrice': None, 'clientId': None, 'createdAt': '2020-11-19T13:30:25.969907+00:00', 'filledSize': 0.0, 'future': None, 'id': 14955364871, 'ioc': False, 'liquidation': False, 'market': 'ETHBEAR/USD', 'postOnly': False, 'price': 0.02378, 'reduceOnly': False, 'remainingSize': 10.0, 'side': 'buy', 'size': 10.0, 'status': 'new', 'type': 'limit'} # , 'id': '14955364871', 'clientOrderId': None, 'timestamp': 1605792625969, 'datetime': '2020-11-19T13:30:25.969Z', 'lastTradeTimestamp': None, 'symbol': 'ETH
In csv file only have columnsn not get values on row.
...ANSWER
Answered 2020-Nov-21 at 18:11set order by yourself using double bracket
QUESTION
I would like a bash script to find a string in a file and extract subsequent information by writing in into another file. Here is an example of the original content of file foo.txt:
...ANSWER
Answered 2020-Nov-11 at 18:06Using your provided XML file, the following xmlstarlet
invocation run in bash
will print out the matching record in TSV format:
QUESTION
import pandas as pd
URL = "https://ftx.com/api/futures/ETH-PERP/stats"
response = requests.get(URL)
html=response.text
...ANSWER
Answered 2020-Sep-04 at 05:01Does This Solve Your Question?
QUESTION
I have the following code in pine script:
strategy.entry("REV", strategy.long, comment="REV", qty=0.9)
Running it against the ticker SHITPERP
on the FTX exchange gives the error:
“quantity for entry or order must be a positive number less or equal to 1000000000.000000, passed value is 0.000000 “
The qty
value appears to be rounded to zero. If I change it to say 1.9 then it works but the resulting position size is 1
These orders work just fine in the exchange itself and are not rounded down to the nearest integer.
Is there some sort of minimum order size limit when using strategy.entry or strategy.order? Is there a variable I can check or calculation necessary to make orders like this not throw errors? I run into this problem with various scripts on different assets
I also checked syminfo.mintick
and syminfo.pointvalue
to see if there is some clue there and they are 0.1 and 1 respectively
The only thing I can think of is maybe some sort of currency conversion but I am not setting the currency on the strategy and the base pair for the asset is USD stable coin. Even if I set the currency to USD the same problem occurs.
Any help would be greatly appreciated
...ANSWER
Answered 2020-May-04 at 23:06Thank you for your answer! This error bugged me since they upgrade to Pine 4.0 Now I know where to fix it :)
Simple solution; put some if to check if variable is less than 1, then assign 1 to it.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install ftx
You can use ftx like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page