Questions tagged [trading]

The act of buying and selling financial instruments, such as money markets spot instruments, stocks, bonds, commodities, virtual currencies, indices, futures, options, CFD-s and other derivatives, performed on a for-profit basis.

Trading in general and speculative trading are a form of participation in a process of mutually beneficial exchange.

Speculative trading is a knowingly speculative, for-profit, participation in a multi-layer scene of sell-side and buy-side market participants ( liquidity providers ), brokerage entities / mediators, market regulators ( where territorially applicable and legally enforced ) and retail traders.

Markets typically offer trading in both Buy ( a.k.a. Long ) and Sell ( Short ) contract positions for various financial instruments such as:

  • money markets spot contracts,
  • ETF contracts,
  • virtual currencies,
  • stocks,
  • bonds,
  • commodities,
  • indices,
  • futures,
  • options,
  • options on index,
  • non-deliverable swaps,
  • CFD-s and other derivatives.
1444 questions
155
votes
8 answers

What online brokers offer APIs?

So I'm getting really sick of E*TRADE and, being a developer, would love to find an online broker that offers an API. It would be great to be able to write my own trading tools, and maybe even modify existing ones. Based on my research so far, I've…
Wilco
  • 32,754
  • 49
  • 128
  • 160
36
votes
2 answers

What's the best API for automated forex trading?

I am interested in writing a small automatic trader for the forex market. I would like to chose my own tools (platform and programming language) and I just need to find a decent API to query the numbers and that accepts requests for trading actions.…
Hugo
  • 1,065
  • 1
  • 10
  • 11
25
votes
7 answers

java distributed cache for low latency, high availability

I've never used distributed caches/DHTs like memcached, jboss cache, ehcache, etc. I'm wondering which, if any, is appropriate for my use. First, I'm not doing web applications (as most of these project seem to be geared towards web apps). I write…
Shahbaz
  • 10,395
  • 21
  • 54
  • 83
21
votes
4 answers

What data source could I use for my stock market program?

I would like to make a free open-source C++ application for both Linux and Windows which will create live stock market charts (i.e. they're refreshed frequently). Please could you give me some pointers on these issues: What should I use as the data…
Nick Bolton
  • 38,276
  • 70
  • 174
  • 242
20
votes
2 answers

Python, Pandas datareader and Yahoo Error RemoteDataError: Unable to read URL

I am trying to download historical data from Yahoo using Pandas datareader. This is the code that I normally use: import pandas_datareader as pdr df = pdr.get_data_yahoo('SPY') However, I started receiving this error today: RemoteDataError: Unable…
Martingale
  • 511
  • 1
  • 6
  • 15
14
votes
11 answers

Scripting language for trading strategy development

I'm currently working on a component of a trading product that will allow a quant or strategy developer to write their own custom strategies. I obviously can't have them write these strategies in natively compiled languages (or even a language that…
Pierreten
  • 9,917
  • 6
  • 37
  • 45
14
votes
3 answers

Difference between the FIX and FAST protocols?

Could anyone explain what the difference between FIX and FAST? When should one use FIX, and when should one use FAST?
Alisa
  • 305
  • 3
  • 10
13
votes
2 answers

Is there any elegant way to define a dataframe with column of dtype array?

I want to process stock level-2 data in pandas. Suppose there are four kinds data in each row for simplicity: millis: timestamp, int64 last_price: the last trade price, float64, ask_queue: the volume of ask side, a fixed size (200) array of…
Eastsun
  • 18,526
  • 6
  • 57
  • 81
12
votes
3 answers

How to get ALL (or multiple) pair's historical klines from Binance API in ONE request?

I have a trading bot that trades multiple pairs (30-40). It uses the previous 5m candle for the price input. Therefore, I get 5m history for ALL pairs one by one. Currently, the full cycle takes about 10 minutes, so the 5m candles get updated once…
sellthehype
  • 123
  • 1
  • 1
  • 6
12
votes
1 answer

Binance "Event Time" vs "Trade time"

I am looking at the Binance Websocket Stream and have a question about Event time and Trade time. If this is raw trade information, how can there be 2 different times for a "Trade"? What is the "Event Time"? From the github API docs: Trade…
RandyMy
  • 1,013
  • 1
  • 8
  • 9
10
votes
1 answer

Elliot Wave Calculator, Chart Patterns Recognition

I am looking for Python/Java code to find Elliot Waves as at: http://www.elliottwaves.stockmaniacs.net/ http://www.smartfinancein.com/elliot-wave-calculator.php I am also looking for Python/Java code for chart pattern recognition as done by…
Vikas
  • 129
  • 1
  • 2
  • 8
9
votes
5 answers

Why is my API call to TDA's API not returning a refresh token?

so I've followed the steps here to the letter: https://www.reddit.com/r/algotrading/comments/c81vzq/td_ameritrade_api_access_2019_guide/ in an effort to get a refresh token so that I can build a client app in C# to use TD Ameritrade's API, to…
Codefun64
  • 593
  • 2
  • 9
  • 18
9
votes
2 answers

How to place percentage orders with Binance API and Python-CCXT?

I'm playing with Binance API to make my trading bot with Python 3.6. and CCXT library (here you find the docs ). One very useful thing they have in their site is the capability to place orders for a percentage of your current balance: for example if…
kalikantus
  • 123
  • 1
  • 1
  • 6
9
votes
1 answer

Kraken API AssetPairs

I am consuming the Kraken API, and I am not able to find a good explanation to the info I have in the response. Actually, for a given pair, I have the following info: altname = alternate pair name aclass_base = asset class of…
Bruno Ripa
  • 833
  • 2
  • 12
  • 25
9
votes
2 answers

Creating Trading Signals in R

I'm constructing a trading strategy and am stuck at two key areas. When using Stoch and MACD in quantmod, I am trying to create a signal when the slow stochastic crosses over the fast stochastic (1), and visa-versa(-1), and flat when in between (0).…
SJSU2013
  • 585
  • 3
  • 8
  • 18
1
2 3
95 96