Skip to content

Commit

Permalink
Fixed findings 2
Browse files Browse the repository at this point in the history
  • Loading branch information
jbaron committed Jan 12, 2024
1 parent 0611429 commit 85c1ce5
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 10 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
/*
* Copyright 2020-2023 Neural Layer
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package org.roboquant.tiingo

import org.roboquant.common.Config

/**
* Configuration for Tiingo connections
*
* @property key the Tiingo api key to use (property name is tiingo.key)
*/
data class TiingoConfig(
var key: String = Config.getProperty("tiingo.key", ""),
)
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ class TiingoHistoricFeed(
return urlBuilder.build()
}


/**
* Retrieve the historic end-of-day price-bars for provided [symbols] and [timeframe].
* If required, the end-of-day prices can be resampled into a lower [frequency] like "weekly" or "monthly"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ import okhttp3.WebSocket
import okhttp3.WebSocketListener
import org.roboquant.common.Asset
import org.roboquant.common.AssetType
import org.roboquant.common.Config
import org.roboquant.common.Logging
import org.roboquant.feeds.Event
import org.roboquant.feeds.LiveFeed
Expand All @@ -36,15 +35,6 @@ import java.util.concurrent.TimeUnit
import kotlin.collections.set


/**
* Configuration for Tiingo connections
*
* @property key the Tiingo api key to use (property name is tiingo.key)
*/
data class TiingoConfig(
var key: String = Config.getProperty("tiingo.key", ""),
)

private val logger = Logging.getLogger(TiingoLiveFeed::class)

private class Handler(private val feed: TiingoLiveFeed) : WebSocketListener() {
Expand Down

0 comments on commit 85c1ce5

Please sign in to comment.