Wiki
JStore
Search
Login
Dukascopy Support Board
Automated Trading
Knowledge Base
Attention!
Read the forum rules carefully before posting a topic.
Try to find an answer in Wiki before asking a question.
Submit programming questions in this forum only.
Off topics are strictly forbidden.
Any topics which do not satisfy these rules will be
deleted
.
Pages: [ 1 ]
Print view
get news by NewsFilter.TimeFrame.SPECIFIC_DATE
astropata2
Post subject:
get news by NewsFilter.TimeFrame.SPECIFIC_DATE
Post rating:
0
Posted:
Sun 30 Oct, 2016, 22:17
User rating:
0
Joined:
Wed 16 Apr, 2014, 13:07
Posts:
11
Location:
Poland, Kraków
I would assume that if I add this method to the filter and filer to client I should receive all the news from specific date immediately:
NewsFilter newsFilter = new NewsFilter();
//all today's news
Date cur=new Date();
cur.setTime(cur.getTime() - 1000 * 60 * 60 * 1000);
newsFilter.setFrom(cur);
newsFilter.setTimeFrame(NewsFilter.TimeFrame.SPECIFIC_DATE);
client.addNewsFilter(newsFilter);
CalendarFilter calendarFilter = new CalendarFilter();
calendarFilter.setFrom(cur);
calendarFilter.setTimeFrame(NewsFilter.TimeFrame.SPECIFIC_DATE);
client.addNewsFilter(calendarFilter);
But onMessage(IMessage message) receives only standard... (I have all most recent sources)
Is that something that is not working yet or am I missing something?
API Support
Post subject:
Re: get news by NewsFilter.TimeFrame.SPECIFIC_DATE
Post rating:
0
Posted:
Tue 08 Nov, 2016, 11:13
User rating:
∞
Joined:
Fri 31 Aug, 2007, 09:17
Posts:
6139
Please see NewsFilterMain.java and NewsStrategyNoTrades.java in
https://www.dukascopy.com/wiki/#IClient ... er_example
Pages: [ 1 ]
Display posts from previous:
All posts
1 day
7 days
2 weeks
1 month
3 months
6 months
1 year
Sort by
Author
Post time
Subject
Ascending
Descending
Dukascopy Support Board
Automated Trading
Knowledge Base
Jump to:
Select a forum
------------------
Visual JForex
English
Feature Requests
Report a bug
Français
Demandes de nouvelles fonctionnalités
Signaler un problème
Deutsch
Verbesserungsvorschläge
Fehlerberichte
العربية
إقتراحات جديدة
تقارير الأخطاء
Pусский
Заказ нового функционала
Репорты об ошибках
中文
功能要求
报告错误
Forex Community
Community Board
Contests
Trader Contest
Strategy Contest
Dukascopy Products and Services
Fundamental Analysis Contest
Article Contest
Trading Platforms
JForex
FAQs
Feature Requests
Bug Reports
Automated Trading
Knowledge Base
Feature Requests
Implemented Requests
Bug Reports
Fixed Bugs
Fixed Issues
Release Notes
Previos Versions
© 1998-2025 Dukascopy
®
Bank SA
On-line Currency forex trading with Swiss Forex Broker - ECN Forex Brokerage,
Managed Forex Accounts, introducing forex brokers, Currency Forex Data Feed and News
Currency Forex Trading Platform provided on-line by Dukascopy.com