Wednesday 21 June 2017

História De Jforex Api


O JForexUtils é uma coleção de ferramentas fáceis de usar, robustas e úteis para trabalhar com a API JForex da Dukascopy. O objetivo desta biblioteca é evitar codificações excessivas e uma maneira mais fácil de trabalhar a API. É uma pequena lista do que pode ser feito: Criação, mudança e fechamento de pedidos de forma simples e declarativa. Criando combinando moedas e instrumentos de diferentes fontes. Conversão de quantidades de um instrumento para o outro. Executar ações e chamáveis ​​no segmento de estratégia em uma linha. Reconectar automaticamente Suporte para API autônoma Para todos os recursos e HowTos, veja o Wiki Home. JForexUtils depende puramente do Java 8, por isso não é compatível com as versões Java lt 8 Atualmente, o JForexUtils não está hospedado no MavenCentral ou em qualquer outro repositório online (será feito mais tarde). Para usar a biblioteca em seu projeto, você precisa pegá-lo da página Releases. Aqui você encontra duas versões: o arquivo JForexUtilsUberJar-.jar inclui todas as dependências, o arquivo JForexUtils-.jar não possui dependências incluídas, ela exporta seus pacotes para que você possa usar o arquivo em um ambiente OSGI Bugs e Discussão Detalhes do método getTimeOfLastTick Retorna o tempo do último tiquetaque Recebido para o instrumento especificado. Retorna -1 se nenhum tico foi recebido ainda. Parâmetros: instrumento - instrumento do tiquetaque Retorna: hora do último tiqueteque ou -1 se nenhum toque foi recebido Lança: JFException - quando o instrumento não está ativo (não aberto na plataforma) getTimeOfLastTick Retorna o tempo do último tico recebido para o instrumento especificado. Retorna -1 se nenhum tico foi recebido ainda. Parâmetros: financialInstrument - instrumento do tick Retorna: hora do último tick ou -1 se nenhum tick for recebido Lança: JFException - quando o instrumento não está ativo (não aberto na plataforma) getLastTick Retorna o último tiquele para o instrumento especificado Parâmetros: instrumento - instrumento de O tick Retorna: marque Lances: JFException - quando o instrumento não está ativo (não aberto na plataforma) getLastTick Retorna o último tick para o instrumento especificado Parâmetros: financialInstrument - instrumento do tick Retorna: tick Lances: JFException - quando o instrumento não está ativo (não aberto Na plataforma) getStartTimeOfCurrentBar Retorna o tempo de início da barra atual (barra atualmente gerada a partir de tiques) para o instrumento e o período especificados. Se nenhum toque foi recebido para este instrumento, então retorna -1. Parâmetros: instrumento - instrumento do período da barra - período da barra Retorna: hora de início da barra atual ou -1 se nenhum toque foi recebido Lança: JFException - quando o período não é suportado ou o instrumento não está ativo (não aberto na plataforma) GetStartTimeOfCurrentBar Retorna o tempo de início da barra atual (barra atualmente gerada a partir de tiques) para o instrumento e o período especificados. Se nenhum toque foi recebido para este instrumento, então retorna -1. Parâmetros: instrumento financeiro - instrumento do período da barra - período da barra Retornos: tempo de início da barra atual ou -1 se nenhum toque foi recebido Lança: JFException - quando o período não é suportado ou o instrumento não está ativo (não aberto na plataforma) Retorna a barra para o instrumento, período e lado especificados, que é deslocado para trás no tempo para o número em barras especificadas no parâmetro shift, 0 - barra atual (atualmente gerada a partir de tic), 1 - barra anterior (última barra formada) Se não houver barra Carregado nessa posição, a função retorna nula. Considere obter a barra anterior de uma hora Parâmetros: instrumento - instrumento do período da barra - período do lado da barra - lance ou peça o lado do deslocamento da barra - número de vela no tempo que olha fixamente da barra atual. 1 - barra anterior, 2 - barra atual menos 2 barras e assim por diante Retorna: barra ou nulo se nenhuma barra estiver carregada Lança: JFException - quando o período não é suportado ou o instrumento não está ativo (não aberto na plataforma) Retorna a barra para o instrumento especificado , Período e lado, que é deslocado de volta no tempo para o número em barras especificadas no parâmetro shift, 0 - barra atual (atualmente gerada a partir de tic), 1 - barra anterior (última barra formada) Se não houver nenhuma barra carregada nessa posição, A função retorna nula. Considere obter a barra anterior de uma hora Parâmetros: financialInstrument - instrumento do período do bar - período do lado da barra - lance ou peça o lado do turno da barra - número de velas no tempo que olha fixamente da barra atual. 1 - barra anterior, 2 - barra atual menos 2 barras e assim por diante Retorna: barra ou nulo se nenhuma barra estiver carregada Lança: JFException - quando o período não é suportado ou o instrumento não está ativo (não aberto na plataforma) Lê os tic-tac do local Cache em segundo plano. O método retorna rapidamente após a criação de solicitação de dados que não esperam que nenhum dado seja lido a partir do cache local. Depois que o pedido interno for enviado, os tiques serão retornados através dos métodos de chamada no tickListener. LoadingProgressListener é usado para receber comentários sobre o progresso do carregamento, para cancelar o carregamento e seu método LoadProgressListener. loadingFinished (boolean, long, long, long) é chamado quando o carregamento foi concluído ou como resultado de um erro. Este método tem dois propósitos principais: um é carregar muitos carrapatos sem mantê-los todos na memória, e o segundo é um processamento assíncrono. Considere analisar os últimos dados de cheques - ou seja, calcular o preço médio de oferta e o lance máximo. Parâmetros: instrumento - instrumento de As garrapatas de - início do intervalo de tempo para o qual os tiques devem ser carregados para - fim do intervalo de tempo para o qual os tiques devem ser carregados. Se houver tique-taque com o tempo igual ao tempo no parâmetro, ele será carregado também tickListener - recebe dados sobre carrapatos solicitados loadingProgress - usado para controlar o processo de carregamento Lances: JFException - quando ocorre algum erro durante a criação do pedido interno de dados. Do cache local em segundo plano. O método retorna rapidamente após a criação de solicitação de dados que não esperam que nenhum dado seja lido a partir do cache local. Depois que o pedido interno for enviado, os tiques serão retornados através dos métodos de chamada no tickListener. LoadingProgressListener é usado para receber comentários sobre o progresso do carregamento, para cancelar o carregamento e seu método LoadProgressListener. loadingFinished (boolean, long, long, long) é chamado quando o carregamento foi concluído ou como resultado de um erro. Este método tem dois propósitos principais: um é carregar muitos tiques sem mantê-los todos na memória, e o segundo é um processamento assíncrono. Considere analisar os últimos dias tiques - isto é, calcular o preço médio da oferta e o lance máximo. Parâmetros: instrumento financeiro - instrumento de As garrapatas de - início do intervalo de tempo para o qual os tiques devem ser carregados para - fim do intervalo de tempo para o qual os tiques devem ser carregados. Se houver tique-taque com o tempo igual ao tempo no parâmetro, ele será carregado também tickListener - recebe dados sobre carrapatos solicitados loadingProgress - usado para controlar o processo de carregamento Lances: JFException - quando ocorre algum erro durante a criação do pedido interno de dados. Do cache local em segundo plano. O método retorna rapidamente após a criação de solicitação de dados que não esperam que nenhum dado seja lido a partir do cache local. Depois que o pedido interno for enviado, os tiques serão retornados pelo método de chamada no tickListener. O LoadProgressListener é usado para receber comentários sobre o progresso do carregamento, para cancelar o carregamento e seu método. LoadProgressListener. loadingFinished (boolean, long, long, long) é chamado quando o carregamento foi concluído ou como resultado de um erro Este método tem dois propósitos principais: um é para Carregue muitos tiques sem mantê-los todos na memória e segundo é processamento assíncrono Parâmetros: instrumento - instrumento do número de tiquesOfOneSecondIntervalsAntes - quanto um segundo intervalo de tiques para carregar antes e inclusive um segundo intervalo de tiques com o tempo especificado no parâmetro de tempo Tempo do último segundo intervalo de carrapato no período especificado em numberOfOneSecondIntervalsBefore parâmetro e / ou tempo do intervalo de um segundo de intervalo antes do primeiro segundo intervalo de tick no período especificado com numberOfOneSecondIntervalsAfter parameter numberOfOneSecondIntervalsAfter - quanto um segundo tick intervalos para carregar depois (não incluindo ) Um segundo intervalo de tick com o tempo especificado em Parâmetro de tempo tickListener - recebe dados sobre carrapatos solicitados loadingProgress - usado para controlar o progresso de carregamento Lança: JFException - quando ocorrem alguns erros Lê os tiques do cache local em segundo plano. O método retorna rapidamente após a criação de solicitação de dados que não esperam que nenhum dado seja lido a partir do cache local. Depois que o pedido interno for enviado, os tiques serão retornados pelo método de chamada no tickListener. O LoadProgressListener é usado para receber comentários sobre o progresso do carregamento, para cancelar o carregamento e seu método. LoadProgressListener. loadingFinished (boolean, long, long, long) é chamado quando o carregamento foi concluído ou como resultado de um erro Este método tem dois propósitos principais: um é para Carregar muitos ticks sem mantê-los todos na memória e segundo é o processamento assíncrono Parâmetros: financialInstrument - instrumento financeiro do número de carrapatosOfOneSecondIntervalsAntes - quanto um segundo intervalo de tiques para carregar antes e inclusive um segundo intervalo de tiques com o tempo especificado no tempo Tempo do parâmetro do último segundo intervalo de carraça no período especificado em numberOfOneSecondIntervalsBefore parâmetro ou tempo do intervalo do segundo segundo antes do primeiro intervalo do segundo segundo no período especificado com numberOfOneSecondIntervalsAfter parâmetro numberOfOneSecondIntervalsAfter - quanto um segundo tick intervalos para carregar depois (não Incluindo) um segundo intervalo de intervalo de intervalo H tempo especificado no parâmetro de tempo tickListener - recebe dados sobre carrapatos solicitados loadingProgress - usado para controlar o progresso de carregamento Lança: JFException - quando ocorrem alguns erros Lê barras do cache local em segundo plano. O método retorna rapidamente após a criação de solicitação de dados que não esperam que nenhum dado seja lido a partir do cache local. Após a solicitação interna é enviada, as barras serão retornadas pelo método de chamada no barListener. O LoadProgressListener é usado para receber comentários sobre o progresso do carregamento, para cancelar o carregamento e seu método. LoadProgressListener. loadingFinished (boolean, long, long, long) é chamado quando o carregamento foi concluído ou como resultado de um erro Este método tem dois propósitos principais: um é para Carregue um monte de barras sem mantê-los todos na memória e segundo é processamento assíncrono. Considere analisar as últimas semanas barras de 1 minuto - a saber, calcular o preço médio de fechamento e o tamanho máximo da barra. Parâmetros: instrumento - instrumento do período de barras - período de Barras laterais das barras - início do intervalo de tempo para o qual as barras devem ser carregadas. Deve ser o tempo de partida exato da barra para o período especificado. Consulte a descrição do getBarStart (Período, longo) se desejar obter o tempo de início da barra para a barra que inclua horário específico para o fim do intervalo de tempo para o qual as barras devem ser carregadas. Este é o tempo de início da última barra a ser carregada barListener - recebe dados sobre barras solicitadas loadingProgress - usado para controlar o progresso de carregamento Lança: JFException - quando o período não é suportado ou o intervalo de tempo não é válido para período especificado Veja também: getBarStart (Período Longo) Lê barras do cache local em segundo plano. O método retorna rapidamente após a criação de solicitação de dados que não esperam que nenhum dado seja lido a partir do cache local. Após a solicitação interna é enviada, as barras serão retornadas pelo método de chamada no barListener. O LoadProgressListener é usado para receber comentários sobre o progresso do carregamento, para cancelar o carregamento e seu método. LoadProgressListener. loadingFinished (boolean, long, long, long) é chamado quando o carregamento foi concluído ou como resultado de um erro Este método tem dois propósitos principais: um é para Carregar um monte de barras sem mantê-los todos na memória e segundo, o processamento assíncrono. Considere analisar as últimas semanas barras de 1 minuto - a saber, calcular o preço médio de fechamento e o tamanho máximo da barra Parâmetros: instrumento financeiro - instrumento do período de barras - período do Barras laterais das barras - início do intervalo de tempo para o qual as barras devem ser carregadas. Deve ser o tempo de início exato da barra para o período especificado. Consulte a descrição do getBarStart (Período, longo) se desejar obter o tempo de início da barra para a barra que inclua horário específico para o fim do intervalo de tempo para o qual as barras devem ser carregadas. Este é o tempo de início da última barra a ser carregada barListener - recebe dados sobre barras solicitadas loadingProgress - usado para controlar o progresso de carregamento Lança: JFException - quando o período não é suportado ou o intervalo de tempo não é válido para período especificado Veja também: getBarStart (Período Longo) Lê barras do cache local em segundo plano. O método retorna rapidamente após a criação de solicitação de dados que não esperam que nenhum dado seja lido a partir do cache local. Após a solicitação interna é enviada, as barras serão retornadas pelo método de chamada no barListener. O LoadProgressListener é usado para receber comentários sobre o progresso do carregamento, para cancelar o carregamento e seu método. LoadProgressListener. loadingFinished (boolean, long, long, long) é chamado quando o carregamento foi concluído ou como resultado de um erro Este método tem dois propósitos principais: um é para Carregue um monte de barras sem mantê-los todos na memória e segundo é processamento assíncrono. Considere analisar as últimas semanas barras de 1 minuto - a saber, calcular o preço médio de fechamento e o tamanho máximo da barra. Parâmetros: instrumento - instrumento do período de barras - período de Barras do lado lateral do filtro de barras - método de filtragem de barras veja Filtro de - início do intervalo de tempo para o qual as barras devem ser carregadas. Deve ser o tempo de início exato da barra para o período especificado. Consulte a descrição do getBarStart (Período, longo) se desejar obter o tempo de início da barra para a barra que inclua horário específico para o fim do intervalo de tempo para o qual as barras devem ser carregadas. Este é o tempo de início da última barra a ser carregada barListener - recebe dados sobre barras solicitadas loadingProgress - usado para controlar o progresso de carregamento Lança: JFException - quando o período não é suportado ou o intervalo de tempo não é válido para período especificado Veja também: getBarStart (Período Longo) Lê barras do cache local em segundo plano. O método retorna rapidamente após a criação de solicitação de dados que não esperam que nenhum dado seja lido a partir do cache local. Após a solicitação interna é enviada, as barras serão retornadas pelo método de chamada no barListener. O LoadProgressListener é usado para receber comentários sobre o progresso do carregamento, para cancelar o carregamento e seu método. LoadProgressListener. loadingFinished (boolean, long, long, long) é chamado quando o carregamento foi concluído ou como resultado de um erro Este método tem dois propósitos principais: um é para Carregar um monte de barras sem mantê-los todos na memória e segundo, o processamento assíncrono. Considere analisar as últimas semanas barras de 1 minuto - a saber, calcular o preço médio de fechamento e o tamanho máximo da barra Parâmetros: instrumento financeiro - instrumento do período de barras - período do Barras do lado lateral do filtro de barras - método de filtragem de barras veja Filtro de - início do intervalo de tempo para o qual as barras devem ser carregadas. Deve ser o tempo de início exato da barra para o período especificado. Consulte a descrição do getBarStart (Período, longo) se desejar obter o tempo de início da barra para a barra que inclua horário específico para o fim do intervalo de tempo para o qual as barras devem ser carregadas. Este é o tempo de início da última barra a ser carregada barListener - recebe dados sobre barras solicitadas loadingProgress - usado para controlar o progresso de carregamento Lança: JFException - quando o período não é suportado ou o intervalo de tempo não é válido para período especificado Veja também: getBarStart (Período Longo) Lê barras do cache local em segundo plano. O método retorna rapidamente após a criação de solicitação de dados que não esperam que nenhum dado seja lido a partir do cache local. Após a solicitação interna é enviada, as barras serão retornadas pelo método de chamada no barListener. O LoadProgressListener é usado para receber comentários sobre o progresso do carregamento, para cancelar o carregamento e seu método. LoadProgressListener. loadingFinished (boolean, long, long, long) é chamado quando o carregamento foi concluído ou como resultado de um erro Este método tem dois propósitos principais: um é para Carregar um monte de barras sem mantê-los todos na memória, e o segundo é um processamento assíncrono. Considere analisar as barras de 100000 1 minuto, ou seja, calcular o preço médio de fechamento e o tamanho máximo da barra. Parâmetros: instrumento - instrumento do período de barras - período das barras Lado lateral do filtro de barras - permite filtrar o número de velasOfCandlesAntes - quanto de velas para carregar antes e inclusive a vela com o tempo especificado no tempo do parâmetro de tempo - as últimas velas no período especificado em numberOfCandlesAntes do parâmetro ou tempo da vela antes da primeira vela No período especificado com numberOfCandlesAfter parâmetro numberOfCandlesAfter - quantas velas para carregar depois (não incluindo) a vela Com o tempo especificado no parâmetro de tempo barListener - recebe dados sobre barras solicitadas loadingProgress - usado para controlar o progresso de carregamento Lança: JFException - quando o período não é suportado ou intervalo de tempo não é válido para período especificado Veja também: getBarStart (Período, longo) Lê as barras de O cache local em segundo plano. O método retorna rapidamente após a criação de solicitação de dados que não esperam que nenhum dado seja lido a partir do cache local. Após a solicitação interna é enviada, as barras serão retornadas pelo método de chamada no barListener. O LoadProgressListener é usado para receber comentários sobre o progresso do carregamento, para cancelar o carregamento e seu método. LoadProgressListener. loadingFinished (boolean, long, long, long) é chamado quando o carregamento foi concluído ou como resultado de um erro Este método tem dois propósitos principais: um é para Carregar um monte de barras sem mantê-los todos na memória, e o segundo é um processamento assíncrono. Considere analisar os 100000 bares de 1 minuto, ou seja, calcular o preço médio de fechamento e o tamanho máximo da barra Parâmetros: instrumento financeiro - instrumento do período de barras - período das barras Lado lateral do filtro de barras - permite filtrar o número de velasOfCandlesAntes - quanto de velas para carregar antes e inclusive a vela com o tempo especificado no tempo do parâmetro de tempo - as últimas velas no período especificado em numberOfCandlesAntes do parâmetro ou tempo da vela antes da primeira vela No período especificado com numberOfCandlesAfter parâmetro numberOfCandlesAfter - quanto velas para carregar depois (não incluindo ) Vela com tempo especificado no parâmetro de tempo barListener - recebe dados sobre barras solicitadas loadingProgress - usado para controlar o progresso de carregamento Lança: JFException - quando o período não é suportado ou o intervalo de tempo não é válido para o período especificado Veja também: getBarStart (Período, longo) Retorna Carrapatos para o instrumento especificado e intervalo de tempo. Método bloqueia até que todos os dados sejam carregados do servidor para o cache local e depois leiam e armazenem na coleção. Como todos os dados são carregados na memória, este método deve ser usado com cuidado para não carregar demasiados dados que possam levar a OutOfMemoryException Parâmetros: instrumento - instrumento dos tiques - início do intervalo de tempo para o qual os tiques devem ser carregados para - hora de término do intervalo de tempo para o qual os tiques devem ser carregados. Se houver tiquetaque com o tempo igual ao tempo no parâmetro, ele também será carregado. Retorna: tiques carregados Lança: JFException - quando ocorre algum erro ao carregar dados Retorna os tiques para o instrumento e o intervalo de tempo especificados. Método bloqueia até que todos os dados sejam carregados do servidor para o cache local e depois leiam e armazenem na coleção. Como todos os dados são carregados na memória, esse método deve ser usado com cuidado para não carregar dados que possam resultar em OutOfMemoryException Parâmetros: financialInstrument - instrumento dos carrapatos de - início do intervalo de tempo para o qual os tiques devem ser carregados para - hora de término do intervalo de tempo para o qual os tiques devem ser carregados. Se houver um tiquetaque com o tempo igual ao tempo no parâmetro, ele também será carregado. Retorna: tiques carregados Lança: JFException - quando ocorre algum erro ao carregar dados Retorna os tiques para o instrumento, o tempo e a contagem especificados. Método bloqueia até que todos os dados sejam carregados do servidor para o cache local e depois leiam e armazenem na coleção. Como todos os dados são carregados na memória, este método deve ser usado com cuidado para não carregar demasiados dados que possam resultar em OutOfMemoryException Parâmetros: instrumento - instrumento do número de garrapatasOfOneSecondIntervalsBefore - quanto um segundo intervalo de tiques para carregar antes e inclusive Um segundo intervalo de tiques com o tempo especificado no tempo do parâmetro de tempo - o tempo do último segundo intervalo de sinalização no período especificado em numberOfOneSecondIntervalsBefore parâmetro ou tempo do intervalo de segundo segundo antes do primeiro intervalo de segundo segundo no período especificado com numberOfOneSecondIntervalsAfter parâmetro numberOfOneSecondIntervalsAfter - how Muitos segundos intervalos de carraçao para carregar depois (não incluindo) um segundo intervalo de tiques com o tempo especificado no parâmetro de tempo Retorna: carrapatos carregados Lança: JFException - quando ocorre algum erro ao carregar dados Retorna os tiques para o instrumento, o tempo e a contagem especificados. Método bloqueia até que todos os dados sejam carregados do servidor para o cache local e depois leiam e armazenem na coleção. Como todos os dados são carregados na memória, este método deve ser usado com cuidado para não carregar demasiados dados que possam levar a OutOfMemoryException Parâmetros: financialInstrument - instrumento do número de garotasOfOneSecondIntervalsBefore - quanto um segundo intervalo de tiques para carregar antes e inclusive Um segundo intervalo de tiques com o tempo especificado no tempo do parâmetro de tempo - o tempo do último segundo intervalo de sinalização no período especificado em numberOfOneSecondIntervalsBefore parâmetro ou tempo do intervalo de segundo segundo antes do primeiro intervalo de segundo segundo no período especificado com numberOfOneSecondIntervalsAfter parâmetro numberOfOneSecondIntervalsAfter - how Muitos segundos intervalos de carraçao para carregar depois (não incluindo) um segundo intervalo de tick com o tempo especificado no parâmetro de tempo Retorna: carrapatos carregados Lança: JFException - quando ocorre algum erro ao carregar dados Retorna as barras para o instrumento, período e lado especificados. Método bloqueia até que todos os dados sejam carregados do servidor para o cache local e depois leiam e armazenem na coleção. Como todos os dados são carregados na memória, este método deve ser usado com cuidado para não carregar dados demais que podem levar a OutOfMemoryException. Considere obter 5 barras ao longo de um intervalo de tempo: considere obter barras diárias em vários meses: Parâmetros: instrumento - instrumento Do período das barras - período do lado lateral das barras - do início do intervalo de tempo para o qual as barras devem ser carregadas. Deve ser o tempo de início exato da barra para o período especificado. Consulte a descrição do getBarStart (Período, longo) se desejar obter o tempo de início da barra para a vela que inclua horário específico para o fim do intervalo de tempo para o qual as barras devem ser carregadas. Este é o tempo de início da última vela a ser carregada Retornos: barras carregadas Lança: JFException - quando o período não é suportado ou ocorre algum erro ao carregar dados Retorna as barras para o instrumento, o período e o lado especificados. Método bloqueia até que todos os dados sejam carregados do servidor para o cache local e depois leiam e armazenem na coleção. Como todos os dados são carregados na memória, esse método deve ser usado com cuidado para não carregar dados que podem resultar em OutOfMemoryException. Considere obter 5 barras ao longo de um intervalo de tempo: Parâmetros: financialInstrument - instrumento do período de barras - período do Barras laterais das barras - início do intervalo de tempo para o qual as barras devem ser carregadas. Deve ser o tempo de início exato da barra para o período especificado. Consulte a descrição do getBarStart (Período, longo) se desejar obter o tempo de início da barra para a vela que inclua horário específico para o fim do intervalo de tempo para o qual as barras devem ser carregadas. Este é o tempo de início da última vela a ser carregada Retornos: barras carregadas Lances: JFException - quando o período não é suportado ou ocorre algum erro ao carregar dados Retorna as barras para o instrumento, período, lado e filtro especificados. Método bloqueia até que todos os dados sejam carregados do servidor para o cache local e depois leiam e armazenem na coleção. Como todos os dados são carregados na memória, esse método deve ser usado com cuidado para não carregar demasiados dados que possam resultar em Parâmetros OutOfMemoryException: instrumento - instrumento do período de barras - período do lado lado a lado das barras - Método de filtragem de barras, veja Filtro de - início do intervalo de tempo para o qual as barras devem ser carregadas. Deve ser o tempo de início exato da barra para o período especificado. Consulte a descrição do getBarStart (Período, longo) se desejar obter o tempo de início da barra para a vela que inclua horário específico para o fim do intervalo de tempo para o qual as barras devem ser carregadas. Este é o tempo de início da última vela a ser carregada Retornos: barras carregadas Lances: JFException - quando o período não é suportado ou ocorre algum erro ao carregar dados Retorna as barras para o instrumento, período, lado e filtro especificados. Método bloqueia até que todos os dados sejam carregados do servidor para o cache local e depois leiam e armazenem na coleção. Como todos os dados são carregados na memória, este método deve ser usado com cuidado para não carregar dados demais que possam levar a OutOfMemoryException Parâmetros: financialInstrument - instrumento do período de barras - período do lado lateral das barras do filtro - Método de filtragem de barras, veja Filtro de - início do intervalo de tempo para o qual as barras devem ser carregadas. Deve ser o tempo de início exato da barra para o período especificado. Consulte a descrição do getBarStart (Período, longo) se desejar obter o tempo de início da barra para a vela que inclua horário específico para o fim do intervalo de tempo para o qual as barras devem ser carregadas. Este é o tempo de início da última vela a ser carregada Retornos: barras carregadas Lança: JFException - quando o período não é suportado ou ocorre algum erro ao carregar dados Retorna as barras para o instrumento, o período e o lado especificados. Método bloqueia até que todos os dados sejam carregados do servidor para o cache local e depois leiam e armazenem na coleção. Como todos os dados são carregados na memória, esse método deve ser usado com cuidado para não carregar dados que podem resultar em OutOfMemoryException. Se o período solicitado incluir a barra que ainda não está totalmente formada (barra em andamento), está incluída, mesmo que seja plana. Considere obter 5 barras durante um intervalo de velas: Parâmetros: instrumento - instrumento do período de barras - período de Barras laterais do filtro de barras - permite filtrar o número de velasOfCandlesAntes - quanto de velas para carregar antes e inclusive a vela com o tempo especificado no tempo do parâmetro de tempo - a hora da última vela no período especificado em numberOfCandlesAntes o parâmetro ou a hora da primeira vela No período especificado com numberOfCandlesAfter parâmetro se numberOfCandlesBefore for 0 ou tempo da vela antes da primeira vela no período especificado com numberOfCandlesAfter if numberOfCandlesBefore é 0 numberOfCandlesAfter - quanto de velas para carregar depois (não incluindo) vela com tempo especificado no parâmetro de tempo Retorna: Barras carregadas Lança: JFException - quando o período não é suportado ou ocorre algum erro ao carregar dados Retorna as barras para o especificado i Nstrument, período e lado. Método bloqueia até que todos os dados sejam carregados do servidor para o cache local e depois leiam e armazenem na coleção. Como todos os dados são carregados na memória, esse método deve ser usado com cuidado para não carregar dados que podem resultar em OutOfMemoryException. Se o período solicitado incluir a barra que ainda não está completamente formada (barra em andamento), está incluso mesmo se for plano. Considere obter 5 barras durante um intervalo de velas: Parâmetros: instrumento financeiro - instrumento do período de barras - período de Barras laterais do filtro de barras - permite filtrar o número de velasOfCandlesAntes - quanto de velas para carregar antes e inclusive a vela com o tempo especificado no tempo do parâmetro de tempo - a hora da última vela no período especificado em numberOfCandlesAntes o parâmetro ou a hora da primeira vela No período especificado com numberOfCandlesAfter parâmetro se numberOfCandlesBefore for 0 ou tempo da vela antes da primeira vela no período especificado com numberOfCandlesAfter if numberOfCandlesBefore é 0 numberOfCandlesAfter - quanto de velas para carregar depois (não incluindo) vela com tempo especificado no parâmetro de tempo Retorna: Barras carregadas Lança: JFException - quando o período não é suportado ou ocorre algum erro ao carregar dados getBarStart Returns Hora de início da barra que inclui o tempo especificado no parâmetro de tempo Parâmetros: período - período do tempo da barra que é incluído pela barra Retorna: hora de início da barra Jatos: JFException - quando o período não é suportado getNextBarStart Retorna a hora de início de A barra ao lado da barra que inclui o tempo especificado no parâmetro barTime Parâmetros: período - período da barra barTime - tempo que é incluído na barra anterior ao retornado Retornos: tempo de início da barra Jatos: JFException - quando o período não é suportado GetPreviousBarStart Retorna o tempo de início da barra anterior à barra que inclui o tempo especificado no parâmetro barTime Parâmetros: período - período para a barra barTime - tempo incluído na barra ao lado do retornado Retornos: tempo de exibição da barra Tiros: JFException - Quando o período não é suportado getTimeForNBarsBack Retorna o tempo de início da barra que é numberOfBars - 1 de volta no tempo para a barra que inclui o tempo especificado no parâmetro . O método pode ser usado para obter tempo para o parâmetro from do método getBars (com. dukascopy. api. Instrument, com. dukascopy. api. Period, com. dukascopy. api. OfferSide, longo, longo) quando é conhecido o tempo do último Barra e número de velas que precisam ser carregadas Parâmetros: período - período das barras para - hora da última barra númeroOfBars - número de barras que podem ser carregadas ao passar o tempo e a hora retornados especificados no parâmetro em getBars (com. dukascopy Método. api. Instrument, com. dukascopy. api. Period, com. dukascopy. api. OfferSide, long, long) Retorna: hora de início da barra Tira: JFException - quando o período não é suportado getTimeForNBarsForward Retorna o tempo de início da barra que É numberOfBars - 1 no futuro para a barra que inclui o tempo especificado no parâmetro. O método pode ser usado para obter tempo para o parâmetro para o método getBars (com. dukascopy. api. Instrument, com. dukascopy. api. Period, com. dukascopy. api. OfferSide, longo e longo) quando é tempo conhecido do primeiro bar and number of candles that needs to be loaded Parameters: period - period of the bars from - time of the first bar numberOfBars - number of bars that could be loaded when passing returned time and time specified in from parameter in getBars(com. dukascopy. api. Instrument, com. dukascopy. api. Period, com. dukascopy. api. OfferSide, long, long) method Returns: starting time of the last bar Throws: JFException - when period is not supported readOrdersHistory Loads orders from the server in the background. Method returns fast after creating request for data not waiting for any data to be loaded After internal request is sent, orders will be returned by calling method in ordersListener. LoadingProgressListener is used to receive feedback about loading progress, to cancel loading and its method LoadingProgressListener. loadingFinished(boolean, long, long, long) is called when loading is finished or as a result of error This method can be used for orders loading without blocking strategy execution NB Only one order history request can be sent at a time. If there is another request sent method will throw JFException Parameters: instrument - instrument of the orders from - start of the time interval for which orders should be loaded to - end time of the time interval for which orders should be loaded ordersListener - receives data about requested orders loadingProgress - used to control loading progress Throws: JFException - in case of any system error See Also: getOrdersHistory(Instrument instrument, long from, long to) readOrdersHistory Loads orders from the server in the background. Method returns fast after creating request for data not waiting for any data to be loaded After internal request is sent, orders will be returned by calling method in ordersListener. LoadingProgressListener is used to receive feedback about loading progress, to cancel loading and its method LoadingProgressListener. loadingFinished(boolean, long, long, long) is called when loading is finished or as a result of error This method can be used for orders loading without blocking strategy execution NB Only one order history request can be sent at a time. If there is another request sent method will throw JFException Parameters: financialInstrument - instrument of the orders from - start of the time interval for which orders should be loaded to - end time of the time interval for which orders should be loaded ordersListener - receives data about requested orders loadingProgress - used to control loading progress Throws: JFException - in case of any system error See Also: getOrdersHistory(IFinancialInstrument financialInstrument, long from, long to) getOrdersHistory Returns orders for specified instrument and time interval. Method blocks until all data will be loaded from the server. NB Only one order history request can be sent at a time. If there is another request sent method will throw JFException Parameters: instrument - instrument of the orders from - start of the time interval for which orders should be loaded to - end time of the time interval for which orders should be loaded Returns: loaded orders Throws: JFException - in case of any system error getOrdersHistory Returns orders for specified instrument and time interval. Method blocks until all data will be loaded from the server. NB Only one order history request can be sent at a time. If there is another request sent method will throw JFException Parameters: financialInstrument - instrument of the orders from - start of the time interval for which orders should be loaded to - end time of the time interval for which orders should be loaded Returns: loaded orders Throws: JFException - in case of any system error getHistoricalOrderById Returns historical (closed) order by position id for the given user account. Parameters: id - closed orders position id Returns: historical (closed) order with specified position id for the given user account or null if there is no one. Throws: JFException - in case of any system error Returns current equity calculated for every tick Returns tick for specified instrument, that is shifted back in time for number in ticks specified in shift parameter, 0 - current tick, 1 - previous tick. Parameters: instrument - instrument of the tick shift - number of tick back in time staring from current tick. 1 - previous tick, 2 - current tick minus 2 ticks and so on Returns: tick Throws: JFException - when instrument is not active (not opened in platform) or other errors Returns tick for specified instrument, that is shifted back in time for number in ticks specified in shift parameter, 0 - current tick, 1 - previous tick. Parameters: financialInstrument - instrument of the tick shift - number of tick back in time staring from current tick. 1 - previous tick, 2 - current tick minus 2 ticks and so on Returns: tick Throws: JFException - when instrument is not active (not opened in platform) or other errors getFeedData Returns bar for specified feed descriptor, that is shifted back in time for number in bars specified in shift parameter, 0 - current bar (currently generated), 1 - previous bar (last formed bar) If there is no bar loaded at that position, then function returns null. Parameters: feedDescriptor - holds parameters: data type, instrument, offer side, etc (depends on bar type), and describes what kind of bars must be loaded shift - number of bars back in time staring from current bar. 1 - previous bar, 2 - current bar minus 2 bars and so on Returns: bar or null if no bar is loaded, the type of returning bar depends on FeedDescriptor. getDataType() Throws: JFException - when some error occurs when loading data getFeedData A type-safe feed data retrieval for the specified feed getFeedData Returns bars for specified feed descriptor. Method blocks until all data will be loaded from the server into local cache and then read and stored in collection. Because all the data is loaded into the memory, this method should be used with caution to not load too much data which can lead to OutOfMemoryException Parameters: feedDescriptor - holds parameters: data type, instrument, offer side, etc (depends on bar type), and describes what kind of bars must be loaded from - start of the time interval for which bars should be loaded to - end time of the time interval for which bars should be loaded. If there is bar with time equals to the time in to parameter then it will be loaded as well Returns: loaded bars Throws: JFException - when incorrect time interval is passed or some error occurs when loading data getFeedData A type-safe feed data retrieval for the specified feed getFeedData Returns bars for specified feedDescriptor. Method blocks until all data will be loaded from the server into local cache and then read and stored in collection. Because all the data is loaded into the memory, this method should be used with caution to not load too much data which can lead to OutOfMemoryException . Parameters: feedDescriptor - holds parameters: data type, instrument, offer side, etc (depends on bar type), and describes what kind of bars must be loaded numberOfFeedBarsBefore - how much bars to load before and including bar with time specified in time parameter time - the time of the last bar in period specified in numberOfFeedBarsBefore parameter, or the time of the first bar in period specified with numberOfFeedBarsAfter parameter if numberOfFeedBarsBefore is 0, or the time of the bar prior to the first bar in period specified with numberOfFeedBarsAfter if numberOfFeedBarsBefore is 0 numberOfFeedBarsAfter - how much bars to load after (not including) bar with time specified in time parameter Returns: loaded bars Throws: JFException - when some error occurs when loading data getFeedData A type-safe feed data retrieval for the specified feed readFeedData Reads feed data from the local cache in the background. Method returns fast after creating request for data not waiting for any data to be read from local cache. After internal request is sent, feed data items will be returned by calling method in feedListener. LoadingProgressListener is used to receive feedback about loading progress, to cancel loading and its method LoadingProgressListener. loadingFinished(boolean, long, long, long) is called when loading is finished or as a result of error This method has two main purposes: one is to load a lot of bars without keeping them all in memory, and second is asynchronous processing Consider analyzing the last weeks renko bricks - namely calculating the average close price Parameters: feedDescriptor - feed descriptor of the feed data from - start of the time interval for which feed data items should be loaded. to - end time of the time interval for which feed data items should be loaded. feedListener - receives data about requested feed data items loadingProgress - used to control loading progress Throws: JFException - when some errors occurs readFeedData A type-safe feed data retrieval for the specified feed readFeedData Reads feed data from the local cache in the background. Method returns fast after creating request for data not waiting for any data to be read from local cache. After internal request is sent, feed data will be returned by calling method in feedListener. LoadingProgressListener is used to receive feedback about loading progress, to cancel loading and its method LoadingProgressListener. loadingFinished(boolean, long, long, long) is called when loading is finished or as a result of error This method has two main purposes: one is to load a lot of feed data without keeping them all in memory, and second is asynchronous processing Consider analyzing the last 1000 renko bricks - namely calculating the average close price Parameters: feedDescriptor - feed descriptor of the feed data numberOfFeedDataBefore - how much feed data items to load before and including feed data item with time specified in time parameter time - time of the last feed data item in period specified in numberOfFeedDataBefore parameter orand time of the feed data item prior first feed data item in period specified with numberOfFeedDataAfter parameter numberOfFeedDataAfter - how much feed data items to load after (not including) feed data item with time specified in time par ameter feedListener - receives feed data loadingProgress - used to control loading progress Throws: JFException - when some errors occurs readFeedData A type-safe feed data retrieval for the specified feed getPointAndFigure Returns Point and Figure for specified instrument, offer side, box size and reversal amount, that is shifted back in time for number in bars specified in shift parameter, 0 - current bar, 1 - previous bar (last formed bar) If there is no bar loaded at that position, then function returns null. This method uses default base period IFeedDescriptor. DEFAULTBASEPERIOD. which has EET time zone and default data interpolation descriptor ( DataInterpolationDescriptor. DEFAULT ). To indicate specific base period andor data interpolation descriptor, use getFeedData(ITailoredFeedDescriptor, int) . Parameters: instrument - instrument of PF offerSide - bid or ask side of PF boxSize - box size of the PF reversalAmount - reversal amount of the PF shift - number of PF back in time staring from current PF. 1 - previous PF, 2 - current PF minus 2 bars and so on Returns: PF or null if no PF is loaded Throws: JFException - when shift value is negative or instrument is not active (not opened in platform) getPointAndFigures Returns Point and Figures for specified instrument, offer side, box size and reversal amount. This method uses default base period IFeedDescriptor. DEFAULTBASEPERIOD. which has EET time zone and default data interpolation descriptor ( DataInterpolationDescriptor. DEFAULT ). To indicate specific base period andor data interpolation descriptor, use getFeedData(ITailoredFeedDescriptor, long, long). Method blocks until all data will be loaded from the server into local cache and then read and stored in collection. Because all the data is loaded into the memory, this method should be used with caution to not load too much data which can lead to OutOfMemoryException If the requested period includes the bar that is not fully formed yet (in-progress bar), then it is included in result too Subscribe to Point and Figure live notification first, before call this method. Parameters: instrument - of PFs offerSide - offer side of PFs boxSize - box size of PFs reversalAmount - reversal amount of PFs from - start time of the time interval for which bars should be loaded. This time is included in interval start end of the first loaded bar to - end time of the time interval for which bars should be loaded. This time is included in interval start end of the last loaded bar Returns: loaded Point And Figures Throws: JFException - when incorrect time interval is passed or some error occurs when loading data getPointAndFigures Returns Point and Figures for specified instrument, offer side, box size and reversal amount. This method uses default base period IFeedDescriptor. DEFAULTBASEPERIOD. which has EET time zone and default data interpolation descriptor ( DataInterpolationDescriptor. DEFAULT ). To indicate specific base period andor data interpolation descriptor, use getFeedData(ITailoredFeedDescriptor, int, long, int). Method blocks until all data will be loaded from the server into local cache and then read and stored in collection. Because all the data is loaded into the memory, this method should be used with caution to not load too much data which can lead to OutOfMemoryException. If the requested period includes the bar that is not fully formed yet (in-progress bar), then it is included in result too Subscribe to Point and Figure live notification first, before call this method. Parameters: instrument - instrument of the PFs offerSide - offer side of the PFs boxSize - price range of the PFs numberOfBarsBefore - how much bars to load before and including bar with time specified in time parameter time - time of the last bar in period specified in numberOfBarsBefore parameter, or time of the first bar in period specified with numberOfBarsAfter parameter if numberOfBarsBefore is 0, or time of the candle prior to first candle in period specified with numberOfBarsAfter if numberOfBarsBefore is 0 numberOfBarsAfter - how much bars to load after (not including) bar with time specified in time parameter Returns: loaded bars Throws: JFException - when desired data amount is negative, etc or some error occurs when loading data readPointAndFigures Reads Point and Figures from the local cache in the background. Method returns fast after creating request for data not waiting for any data to be read from local cache. After internal request is sent, bars will be returned by calling method in listener. LoadingProgressListener is used to receive feedback about loading progress, to cancel loading and its method LoadingProgressListener. loadingFinished(boolean, long, long, long) is called when loading is finished or as a result of error This method has two main purposes: one is to load a lot of bars without keeping them all in memory, and second is asynchronous processing. This method uses default base period IFeedDescriptor. DEFAULTBASEPERIOD. which has EET time zone and default data interpolation descriptor ( DataInterpolationDescriptor. DEFAULT ). Subscribe to Point and Figure live notification first, before call this method. Parameters: instrument - of PFs offerSide - offer side of PFs boxSize - box size of PFs reversalAmount - reversal amount of PFs from - start time of the time interval for which bars should be loaded. This time is included in interval start end of the first loaded bar to - end time of the time interval for which bars should be loaded. This time is included in interval start end of the last loaded bar listener - receives data about requested bars loadingProgress - used to control loading progress Throws: JFException - when incorrect time interval is passed or some error occurs when loading data readPointAndFigures Reads Point and Figures from the local cache in the background. Method returns fast after creating request for data not waiting for any data to be read from local cache. After internal request is sent, bars will be returned by calling method in listener. LoadingProgressListener is used to receive feedback about loading progress, to cancel loading and its method LoadingProgressListener. loadingFinished(boolean, long, long, long) is called when loading is finished or as a result of error This method has two main purposes: one is to load a lot of bars without keeping them all in memory, and second is asynchronous processing This method uses default base period IFeedDescriptor. DEFAULTBASEPERIOD. which has EET time zone and default data interpolation descriptor ( DataInterpolationDescriptor. DEFAULT ). Subscribe to Point and Figure live notification first, before call this method. Parameters: instrument - of PFs offerSide - offer side of PFs boxSize - box size of PFs reversalAmount - reversal amount of PFs numberOfBarsBefore - how much bars to load before and including bar with time specified in time parameter time - time of the last bar in period specified in numberOfBarsBefore parameter, or time of the first bar in period specified with numberOfBarsAfter parameter if numberOfBarsBefore is 0, or time of the candle prior to first candle in period specified with numberOfBarsAfter if numberOfBarsBefore is 0 numberOfBarsAfter - how much bars to load after (not including) bar with time specified in time parameter listener - receives data about requested bars loadingProgress - used to control loading progress Throws: JFException - when incorrect time interval is passed or some error occurs when loading data getTickBar Returns tick bar for specified instrument, offer side and tick bar size, that is shifted back in time for number in bars specified in shift parameter, 0 - current bar, 1 - previous bar (last formed bar) If there is no bar loaded at that position, then function returns null. This method uses default base period IFeedDescriptor. DEFAULTBASEPERIOD. which has EET time zone. To indicate specific base period, use getFeedData(ITailoredFeedDescriptor, int) . Parameters: instrument - instrument of the tick bar offerSide - bid or ask side of the tick bar tickBarSize - tick bar size of the tick bar shift - number of tick bar back in time staring from current tick bar. 1 - previous tick bar, 2 - current tick bar minus 2 bars and so on Returns: range bar or null if no bar is loaded Throws: JFException - when shift value is negative or instrument is not active (not opened in platform) getTickBars Returns Tick Bars for specified instrument, offer side and tick bar size. This method uses default base period IFeedDescriptor. DEFAULTBASEPERIOD. which has EET time zone. Method blocks until all data will be loaded from the server into local cache and then read and stored in collection. Because all the data is loaded into the memory, this method should be used with caution to not load too much data which can lead to OutOfMemoryException If the requested period includes the bar that is not fully formed yet (in-progress bar), then it is included in result too Subscribe to Tick Bar live notification first, before call this method. Parameters: instrument - of Tick Bars offerSide - offer side of Tick Bars tickBarSize - tick bar size of Tick Bars from - start time of the time interval for which bars should be loaded. This time is included in interval start end of the first loaded bar to - end time of the time interval for which bars should be loaded. This time is included in interval start end of the last loaded bar Returns: loaded Tick Bars Throws: JFException - when incorrect time interval is passed or some error occurs when loading data getTickBars Returns Tick Bars for specified instrument, offer side and tick bar size. This method uses default base period IFeedDescriptor. DEFAULTBASEPERIOD. which has EET time zone. Method blocks until all data will be loaded from the server into local cache and then read and stored in collection. Because all the data is loaded into the memory, this method should be used with caution to not load too much data which can lead to OutOfMemoryException. If the requested period includes the bar that is not fully formed yet (in-progress bar), then it is included in result too Subscribe to Tick Bar live notification first, before call this method. Parameters: instrument - instrument of the tick bars offerSide - offer side of the tick bars tickBarSize - tick bar size of the tick bars numberOfBarsBefore - how much bars to load before and including bar with time specified in time parameter time - time of the last bar in period specified in numberOfBarsBefore parameter, or time of the first bar in period specified with numberOfBarsAfter parameter if numberOfBarsBefore is 0, or time of the candle prior to first candle in period specified with numberOfBarsAfter if numberOfBarsBefore is 0 numberOfBarsAfter - how much bars to load after (not including) bar with time specified in time parameter Returns: loaded bars Throws: JFException - when desired data amount is negative, etc or some error occurs when loading data readTickBars Reads Tick Bars from the local cache in the background. Method returns fast after creating request for data not waiting for any data to be read from local cache. After internal request is sent, bars will be returned by calling method in listener. LoadingProgressListener is used to receive feedback about loading progress, to cancel loading and its method LoadingProgressListener. loadingFinished(boolean, long, long, long) is called when loading is finished or as a result of error This method has two main purposes: one is to load a lot of bars without keeping them all in memory, and second is asynchronous processing This method uses default base period IFeedDescriptor. DEFAULTBASEPERIOD. which has EET time zone. Subscribe to Tick Bar live notification first, before call this method. Parameters: instrument - of Tick Bars offerSide - offer side of Tick Bars tickBarSize - tick bar size of Tick Bars from - start time of the time interval for which bars should be loaded. This time is included in interval start end of the first loaded bar to - end time of the time interval for which bars should be loaded. This time is included in interval start end of the last loaded bar listener - receives data about requested bars loadingProgress - used to control loading progress Throws: JFException - when incorrect time interval is passed or some error occurs when loading data readTickBars Reads Tick Bars from the local cache in the background. Method returns fast after creating request for data not waiting for any data to be read from local cache. After internal request is sent, bars will be returned by calling method in listener. LoadingProgressListener is used to receive feedback about loading progress, to cancel loading and its method LoadingProgressListener. loadingFinished(boolean, long, long, long) is called when loading is finished or as a result of error This method has two main purposes: one is to load a lot of bars without keeping them all in memory, and second is asynchronous processing This method uses default base period IFeedDescriptor. DEFAULTBASEPERIOD. which has EET time zone. Subscribe to Tick Bar live notification first, before call this method. Parameters: instrument - of Tick Bars offerSide - offer side of Tick Bars tickBarSize - tick bar size of Tick Bars numberOfBarsBefore - how much bars to load before and including bar with time specified in time parameter time - time of the last bar in period specified in numberOfBarsBefore parameter, or time of the first bar in period specified with numberOfBarsAfter parameter if numberOfBarsBefore is 0, or time of the candle prior to first candle in period specified with numberOfBarsAfter if numberOfBarsBefore is 0 numberOfBarsAfter - how much bars to load after (not including) bar with time specified in time parameter listener - receives data about requested bars loadingProgress - used to control loading progress Throws: JFException - when incorrect time interval is passed or some error occurs when loading data getRangeBars Returns Range Bars for specified instrument, offer side and price range. This method uses default base period IFeedDescriptor. DEFAULTBASEPERIOD. which has EET time zone and default data interpolation descriptor ( DataInterpolationDescriptor. DEFAULT ). Method blocks until all data will be loaded from the server into local cache and then read and stored in collection. Because all the data is loaded into the memory, this method should be used with caution to not load too much data which can lead to OutOfMemoryException If the requested period includes the bar that is not fully formed yet (in-progress bar), then it is included in result too Subscribe to Range Bar live notification first, before call this method. Parameters: instrument - of Range Bars offerSide - offer side of Range Bars priceRange - price range of Range Bars from - start time of the time interval for which bars should be loaded. This time is included in interval start end of the first loaded bar to - end time of the time interval for which bars should be loaded. This time is included in interval start end of the last loaded bar Returns: loaded Range Bars Throws: JFException - when incorrect time interval is passed or some error occurs when loading data getRangeBars Returns Range Bars for specified instrument, offer side and price range. This method uses default base period IFeedDescriptor. DEFAULTBASEPERIOD. which has EET time zone and default data interpolation descriptor ( DataInterpolationDescriptor. DEFAULT ). Method blocks until all data will be loaded from the server into local cache and then read and stored in collection. Because all the data is loaded into the memory, this method should be used with caution to not load too much data which can lead to OutOfMemoryException. If the requested period includes the bar that is not fully formed yet (in-progress bar), then it is included in result too Subscribe to Range Bar live notification first, before call this method. Parameters: instrument - instrument of the Range bars offerSide - offer side of the Range bars priceRange - price range of the Range bars numberOfBarsBefore - how much bars to load before and including bar with time specified in time parameter time - time of the last bar in period specified in numberOfBarsBefore parameter, or time of the first bar in period specified with numberOfBarsAfter parameter if numberOfBarsBefore is 0, or time of the candle prior to first candle in period specified with numberOfBarsAfter if numberOfBarsBefore is 0 numberOfBarsAfter - how much bars to load after (not including) bar with time specified in time parameter Returns: loaded bars Throws: JFException - when desired data amount is negative, etc or some error occurs when loading data readRangeBars Reads Range Bars from the local cache in the background. Method returns fast after creating request for data not waiting for any data to be read from local cache. After internal request is sent, bars will be returned by calling method in listener. LoadingProgressListener is used to receive feedback about loading progress, to cancel loading and its method LoadingProgressListener. loadingFinished(boolean, long, long, long) is called when loading is finished or as a result of error This method has two main purposes: one is to load a lot of bars without keeping them all in memory, and second is asynchronous processing This method uses default base period IFeedDescriptor. DEFAULTBASEPERIOD. which has EET time zone and default data interpolation descriptor ( DataInterpolationDescriptor. DEFAULT ). Subscribe to Range Bar live notification first, before call this method. Parameters: instrument - of Range Bars offerSide - offer side of Range Bars priceRange - price range of Range Bars from - start time of the time interval for which bars should be loaded. This time is included in interval start end of the first loaded bar to - end time of the time interval for which bars should be loaded. This time is included in interval start end of the last loaded bar listener - receives data about requested bars loadingProgress - used to control loading progress Throws: JFException - when incorrect time interval is passed or some error occurs when loading data readRangeBars Reads Range Bars from the local cache in the background. Method returns fast after creating request for data not waiting for any data to be read from local cache. After internal request is sent, bars will be returned by calling method in listener. LoadingProgressListener is used to receive feedback about loading progress, to cancel loading and its method LoadingProgressListener. loadingFinished(boolean, long, long, long) is called when loading is finished or as a result of error This method has two main purposes: one is to load a lot of bars without keeping them all in memory, and second is asynchronous processing This method uses default base period IFeedDescriptor. DEFAULTBASEPERIOD. which has EET time zone and default data interpolation descriptor ( DataInterpolationDescriptor. DEFAULT ). Subscribe to Range Bar live notification first, before call this method. Parameters: instrument - of Range Bars offerSide - offer side of Range Bars priceRange - price range of Range Bars numberOfBarsBefore - how much bars to load before and including bar with time specified in time parameter time - time of the last bar in period specified in numberOfBarsBefore parameter, or time of the first bar in period specified with numberOfBarsAfter parameter if numberOfBarsBefore is 0, or time of the candle prior to first candle in period specified with numberOfBarsAfter if numberOfBarsBefore is 0 numberOfBarsAfter - how much bars to load after (not including) bar with time specified in time parameter listener - receives data about requested bars loadingProgress - used to control loading progress Throws: JFException - when incorrect time interval is passed or some error occurs when loading data getRangeBar Returns range bar for specified instrument, offer side and price range, that is shifted back in time for number in bars specified in shift parameter, 0 - current bar, 1 - previous bar (last formed bar) If there is no bar loaded at that position, then function returns null. This method uses default base period IFeedDescriptor. DEFAULTBASEPERIOD. which has EET time zone and default data interpolation descriptor ( DataInterpolationDescriptor. DEFAULT ). Parameters: instrument - instrument of the range bar offerSide - bid or ask side of the range bar priceRange - price range of the range bar shift - number of range bar back in time staring from current range bar. 1 - previous range bar, 2 - current range bar minus 2 bars and so on Returns: range bar or null if no bar is loaded Throws: JFException - when shift value is negative or instrument is not active (not opened in platform) getRenkoBar Returns renko bar for specified instrument, offer side and brick size, that is shifted back in time for number in bars specified in shift parameter, 0 - current bar, 1 - previous bar (last formed bar) If there is no bar loaded at that position, then function returns null. This method uses default base period IFeedDescriptor. DEFAULTBASEPERIOD. which has EET time zone, default renko session ( Period. ONEMIN ) and default price point ( RenkoCreationPoint. CLOSE ). Parameters: instrument - instrument of the Renko bar offerSide - bid or ask side of the Renko bar brickSize - price range of the Renko bar shift - number of bar back in time staring from current bar. 1 - previous bar, 2 - current bar minus 2 bars and so on Returns: Renko bar or null if no bar is loaded Throws: JFException - when shift value is negative or instrument is not active (not opened in platform) getRenkoBars Returns Renko Bars for specified instrument, offer side and brick size. Method blocks until all data will be loaded from the server into local cache and then read and stored in collection. Because all the data is loaded into the memory, this method should be used with caution to not load too much data which can lead to OutOfMemoryException If the requested period includes the bar that is not fully formed yet (in-progress bar), then it is included in result too This method uses default base period IFeedDescriptor. DEFAULTBASEPERIOD. which has EET time zone, default renko session ( Period. ONEMIN ) and default price point ( RenkoCreationPoint. CLOSE ). Subscribe to Renko Bar live notification first, before call this method. Parameters: instrument - of Renko Bars offerSide - offer side of Renko Bars brickSize - price range of Renko Bars from - start time of the time interval for which bars should be loaded. This time is included in interval start end of the first loaded bar to - end time of the time interval for which bars should be loaded. This time is included in interval start end of the last loaded bar Returns: loaded Renko Bars Throws: JFException - when incorrect time interval is passed or some error occurs when loading data getRenkoBars Returns Renko Bars for specified instrument, offer side and brick size. Method blocks until all data will be loaded from the server into local cache and then read and stored in collection. Because all the data is loaded into the memory, this method should be used with caution to not load too much data which can lead to OutOfMemoryException. If the requested period includes the bar that is not fully formed yet (in-progress bar), then it is included in result too This method uses default base period IFeedDescriptor. DEFAULTBASEPERIOD. which has EET time zone, default renko session ( Period. ONEMIN ) and default price point ( RenkoCreationPoint. CLOSE ). Subscribe to Renko Bar live notification first, before call this method. Parameters: instrument - instrument of the Renko bars offerSide - offer side of the Renko bars brickSize - price range of the Renko bars numberOfBarsBefore - how much bars to load before and including bar with time specified in time parameter time - time of the last bar in period specified in numberOfBarsBefore parameter, or time of the first bar in period specified with numberOfBarsAfter parameter if numberOfBarsBefore is 0, or time of the candle prior to first candle in period specified with numberOfBarsAfter if numberOfBarsBefore is 0 numberOfBarsAfter - how much bars to load after (not including) bar with time specified in time parameter Returns: loaded bars Throws: JFException - when desired data amount is negative, etc or some error occurs when loading data readRenkoBars Reads Renko Bars from the local cache in the background. Method returns fast after creating request for data not waiting for any data to be read from local cache. After internal request is sent, bars will be returned by calling method in listener. LoadingProgressListener is used to receive feedback about loading progress, to cancel loading and its method LoadingProgressListener. loadingFinished(boolean, long, long, long) is called when loading is finished or as a result of error This method has two main purposes: one is to load a lot of bars without keeping them all in memory, and second is asynchronous processing This method uses default base period IFeedDescriptor. DEFAULTBASEPERIOD. which has EET time zone, default renko session ( Period. ONEMIN ) and default price point ( RenkoCreationPoint. CLOSE ). Subscribe to Renko Bar live notification first, before call this method. Parameters: instrument - of Renko Bars offerSide - offer side of Renko Bars brickSize - price range of Renko Bars from - start time of the time interval for which bars should be loaded. This time is included in interval start end of the first loaded bar to - end time of the time interval for which bars should be loaded. This time is included in interval start end of the last loaded bar listener - receives data about requested bars loadingProgress - used to control loading progress Throws: JFException - when incorrect time interval is passed or some error occurs when loading data readRenkoBars Reads Renko Bars from the local cache in the background. Method returns fast after creating request for data not waiting for any data to be read from local cache. After internal request is sent, bars will be returned by calling method in listener. LoadingProgressListener is used to receive feedback about loading progress, to cancel loading and its method LoadingProgressListener. loadingFinished(boolean, long, long, long) is called when loading is finished or as a result of error This method has two main purposes: one is to load a lot of bars without keeping them all in memory, and second is asynchronous processing This method uses default base period IFeedDescriptor. DEFAULTBASEPERIOD. which has EET time zone, default renko session ( Period. ONEMIN ) and default price point ( RenkoCreationPoint. CLOSE ). Subscribe to Renko Bar live notification first, before call this method. Parameters: instrument - of Renko Bars offerSide - offer side of Renko Bars brickSize - price range of Renko Bars numberOfBarsBefore - how much bars to load before and including bar with time specified in time parameter time - time of the last bar in period specified in numberOfBarsBefore parameter, or time of the first bar in period specified with numberOfBarsAfter parameter if numberOfBarsBefore is 0, or time of the candle prior to first candle in period specified with numberOfBarsAfter if numberOfBarsBefore is 0 numberOfBarsAfter - how much bars to load after (not including) bar with time specified in time parameter listener - receives data about requested bars loadingProgress - used to control loading progress Throws: JFException - when incorrect time interval is passed or some error occurs when loading data

No comments:

Post a Comment