repo

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 31, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

* Copyright 2021 M1K * * 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 * * http://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.

* Copyright 2021 M1K * * 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 * * http://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.

* Copyright 2021 M1K * * 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 * * http://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.

* Copyright 2021 M1K * * 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 * * http://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.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateCrypto

func CreateCrypto(guildID string, d *db.DB, channelType int, author, ticker string, entry, spt, ept, poi, stop float32) (chan bool, bool, error)

func CreateOption

func CreateOption(sess *discordgo.Session, author, guildID string, d *db.DB, channelType int, ticker, cType, day, month, year string, priceFl, starting, pt, poi, stop, underStart float32) (chan bool, bool, string, error)

func CreateShort

func CreateShort(sess *discordgo.Session, author, guildID string, d *db.DB, ticker, expiry string, stopFl, poiFl, entry, spt, ept float32, channelType int) (chan bool, bool, error)

func CreateStock

func CreateStock(sess *discordgo.Session, author, guildID string, d *db.DB, ticker, expiry string, stopFl, poiFl, entry, spt, ept float32, channelType int) (chan bool, bool, error)

func RemoveCrypto

func RemoveCrypto(guildID string, d *db.DB, ticker string) error

func RemoveCryptoAndRecordHigh

func RemoveCryptoAndRecordHigh(guildID string, d *db.DB, ticker string) error

func RemoveOption

func RemoveOption(sess *discordgo.Session, guildID string, d *db.DB, ticker, cType, day, month, year string, priceFl float32) error

func RemoveOptionAndRecordHigh

func RemoveOptionAndRecordHigh(guildID string, d *db.DB, ticker, cType, day, month, year string, priceFl float32) error

func RemoveShort

func RemoveShort(sess *discordgo.Session, guildID string, d *db.DB, ticker string) error

func RemoveShortAndRecordHigh

func RemoveShortAndRecordHigh(guildID string, d *db.DB, ticker string) error

func RemoveStock

func RemoveStock(sess *discordgo.Session, guildID string, d *db.DB, ticker string) error

func RemoveStockAndRecordHigh

func RemoveStockAndRecordHigh(guildID string, d *db.DB, ticker string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL